MCPcopy Create free account
hub / github.com/apache/kvrocks / LogData

Method LogData

src/storage/storage.cc:1067–1077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1065 }
1066
1067 void LogData(const rocksdb::Slice &blob) override {
1068 // Currently, we always put replid log data at the end.
1069 if (ServerLogData::IsServerLogData(blob.data())) {
1070 ServerLogData server_log;
1071 if (server_log.Decode(blob).IsOK()) {
1072 if (server_log.GetType() == kReplIdLog) {
1073 replid_in_wal_ = server_log.GetContent();
1074 }
1075 }
1076 }
1077 };
1078
1079 std::string GetReplId() { return replid_in_wal_; }
1080

Callers

nothing calls this directly

Calls 4

GetContentMethod · 0.80
IsOKMethod · 0.45
DecodeMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected