Skip to content

Commit

Permalink
Rename ReadManifestLiveFiles -> FindLiveFilesFromLocalManifest
Browse files Browse the repository at this point in the history
  • Loading branch information
aanq committed Sep 25, 2023
1 parent 504e55d commit 795f08b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 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 @@ -2304,7 +2304,7 @@ IOStatus CloudFileSystemImpl::FindAllLiveFiles(
return IOStatus::OK();
}

IOStatus CloudFileSystemImpl::ReadManifestLiveFiles(
IOStatus CloudFileSystemImpl::FindLiveFilesFromLocalManifest(
const std::string& manifest_file,
std::vector<std::string>* live_sst_files) {
std::unique_ptr<LocalManifestReader> extractor(
Expand Down
2 changes: 1 addition & 1 deletion cloud/cloud_file_system_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class CloudFileSystemImpl : public CloudFileSystem {
std::vector<std::string>* live_sst_files,
std::string* manifest_file) override;

IOStatus ReadManifestLiveFiles(
IOStatus FindLiveFilesFromLocalManifest(
const std::string& manifest_file,
std::vector<std::string>* live_sst_files) override;

Expand Down
4 changes: 3 additions & 1 deletion cloud/cloud_file_system_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ class MockCloudFileSystem : public CloudFileSystem {
return notsup_;
}

IOStatus ReadManifestLiveFiles(const std::string& /* manifest_file */, std::vector<std::string>* /* live_sst_files */) override {
IOStatus FindLiveFilesFromLocalManifest(
const std::string& /* manifest_file */,
std::vector<std::string>* /* live_sst_files */) override {
return notsup_;
}

Expand Down
2 changes: 1 addition & 1 deletion include/rocksdb/cloud/cloud_file_system.h
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ class CloudFileSystem : public FileSystem {
// references. Unlike FindAllLiveFiles, this method doesn't resolve the
// manifest name from the cloud manifest and also doesn't pull the manifest
// (i.e., it needs to be present locally).
virtual IOStatus ReadManifestLiveFiles(
virtual IOStatus FindLiveFilesFromLocalManifest(
const std::string& manifest_file,
std::vector<std::string>* live_sst_files) = 0;

Expand Down

0 comments on commit 795f08b

Please sign in to comment.