Skip to content

Commit

Permalink
Integrated BlobDB for backup/restore support (#8129)
Browse files Browse the repository at this point in the history
Summary:
Add support for blob files for backup/restore like table files.
    Since DB session ID is currently not supported for blob files (there is no place to store it in
    the header), so for blob files uses the
    kLegacyCrc32cAndFileSize naming scheme even if
    share_files_with_checksum_naming is set to kUseDbSessionId.

Pull Request resolved: facebook/rocksdb#8129

Test Plan: Add new test units

Reviewed By: ltamasi

Differential Revision: D27408510

Pulled By: akankshamahajan15

fbshipit-source-id: b27434d189a639ef3e6ad165c61a143a2daaf06e
Signed-off-by: Changlong Chen <levisonchen@live.cn>
  • Loading branch information
akankshamahajan15 authored and Changlong Chen committed Jun 18, 2021
1 parent a58e790 commit 081b23c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion env/composite_env_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,12 @@ class CompositeEnv : public Env {
return file_system_->OptimizeForCompactionTableRead(
FileOptions(env_options), db_options);
}

EnvOptions OptimizeForBlobFileRead(
const EnvOptions& env_options,
const ImmutableDBOptions& db_options) const override {
return file_system_->OptimizeForBlobFileRead(FileOptions(env_options),
db_options);
}
// This seems to clash with a macro on Windows, so #undef it here
#ifdef GetFreeSpace
#undef GetFreeSpace
Expand Down

0 comments on commit 081b23c

Please sign in to comment.