Skip to content

Commit

Permalink
draft
Browse files Browse the repository at this point in the history
  • Loading branch information
hx235 committed Dec 6, 2024
1 parent 56ef52a commit cb228e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions db/log_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "db/log_reader.h"

#include <cstdio>
#include <iostream>

#include "db/wal_manager.h"
#include "file/sequence_file_reader.h"
Expand Down Expand Up @@ -209,6 +210,7 @@ bool Reader::ReadRecord(
ReportCorruption(fragment.size(),
"could not decode PredecessorWALInfoType record");
} else {
std::cout << "Predecessor WAL info decoded " << std::endl;
predecessor_log_number_ = predecessor_wal_info_record.GetLogNumber();
predecessor_size_bytes_ = predecessor_wal_info_record.GetSizeBytes();
predecessor_last_seqno_recorded_ =
Expand Down
2 changes: 1 addition & 1 deletion include/rocksdb/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ struct DBOptions {
// Default: false
bool track_and_verify_wals_in_manifest = false;

bool track_predecessor_wal = false;
bool track_predecessor_wal = true;

// If true, verifies the SST unique id between MANIFEST and actual file
// each time an SST file is opened. This check ensures an SST file is not
Expand Down

0 comments on commit cb228e3

Please sign in to comment.