Skip to content

Commit

Permalink
add new
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuecai committed Jul 10, 2024
1 parent a1aff11 commit 3480bae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloud/cloud_file_system_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,7 @@ IOStatus CloudFileSystemImpl::LoadCloudManifest(const std::string& local_dbname,
}
}
gapTs = std::chrono::time_point_cast<std::chrono::milliseconds>(std::chrono::system_clock::now()).time_since_epoch().count() - startTs;
std::cout << "【CostStatis】【CloudFileSystemImpl::LoadCloudManifest】【delete-unsed-data】 costs: " << gapTs << "ms" << std::endl;
std::cout << "【CostStatis】【CloudFileSystemImpl::LoadCloudManifest】【delete-unsed-file】 costs: " << gapTs << "ms" << std::endl;

if (st.ok() && cloud_fs_options.roll_cloud_manifest_on_open &&
cloud_fs_options.is_master) { // TODO 优化项目
Expand Down
2 changes: 1 addition & 1 deletion db/db_impl/db_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4797,7 +4797,7 @@ Status DBImpl::CheckConsistency() {
auto startTs = std::chrono::time_point_cast<std::chrono::milliseconds>(std::chrono::system_clock::now()).time_since_epoch().count();
mutex_.AssertHeld();
std::vector<LiveFileMetaData> metadata;
versions_->GetLiveFilesMetaData(&metadata);
versions_->GetLiveFilesMetaData(&metadata); // metadata 包含了 rocks-cloud 的全部文件
TEST_SYNC_POINT("DBImpl::CheckConsistency:AfterGetLiveFilesMetaData");

auto gapTs = std::chrono::time_point_cast<std::chrono::milliseconds>(std::chrono::system_clock::now()).time_since_epoch().count() - startTs;
Expand Down

0 comments on commit 3480bae

Please sign in to comment.