Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk committed Jan 4, 2024
1 parent 43c82bc commit aa27b3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/storage/storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ class Storage {
Status SetOptionForAllColumnFamilies(const std::string &key, const std::string &value);
Status SetDBOption(const std::string &key, const std::string &value);
Status CreateColumnFamilies(const rocksdb::Options &options);
// It will set sequence_number to the latest sequence number of the backup
// if sequence_number is not nullptr and backup success.
// The sequence_number will be pointed to the value of the sequence number in range of DB,
// but can't promise it's the latest sequence number. So you must check it by yourself before
// using it.
Status CreateBackup(uint64_t *sequence_number = nullptr);
void DestroyBackup();
Status RestoreFromBackup();
Expand Down

0 comments on commit aa27b3b

Please sign in to comment.