Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
yapple committed Jun 30, 2022
1 parent 725326d commit 2cc5165
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion db/version_edit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void VersionEdit::Clear() {
is_open_db_ = false;
is_in_atomic_group_ = false;
remaining_entries_ = 0;
for_checkpoint_ = false;
// for_checkpoint_ = false;
}

bool VersionEdit::EncodeTo(std::string* dst) const {
Expand Down
6 changes: 3 additions & 3 deletions db/version_edit.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ class VersionEdit {
std::string DebugString(bool hex_key = false) const;
std::string DebugJSON(int edit_num, bool hex_key = false) const;

bool check_point() const { return for_checkpoint_; }
void set_check_point(bool b) { for_checkpoint_ = b; }
// bool check_point() const { return for_checkpoint_; }
// void set_check_point(bool b) { for_checkpoint_ = b; }

private:
friend class VersionSet;
Expand Down Expand Up @@ -453,7 +453,7 @@ class VersionEdit {
bool is_column_family_add_;
std::string column_family_name_;

bool for_checkpoint_;
// bool for_checkpoint_;
bool is_open_db_;
bool is_in_atomic_group_;
uint32_t remaining_entries_;
Expand Down
2 changes: 0 additions & 2 deletions include/rocksdb/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -1067,8 +1067,6 @@ class DB {
// you still need to call GetSortedWalFiles after GetLiveFiles to compensate
// for new data that arrived to already-flushed column families while other
// column families were flushing


virtual Status GetLiveFiles(std::vector<std::string>&,
uint64_t* manifest_file_size,
bool flush_memtable = true) = 0;
Expand Down
2 changes: 1 addition & 1 deletion include/rocksdb/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ struct DBOptions {
// transaction is encountered in the WAL
bool allow_2pc = false;

bool check_point_fake_flush = false;
// bool check_point_fake_flush = false;

// A global cache for table-level rows.
// Default: nullptr (disabled)
Expand Down

0 comments on commit 2cc5165

Please sign in to comment.