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

Method Encode

src/server/server.cc:2119–2124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2117}
2118
2119std::string ServerLogData::Encode() const {
2120 if (type_ == kReplIdLog) {
2121 return std::string(1, kReplIdTag) + " " + content_;
2122 }
2123 return content_;
2124}
2125
2126Status ServerLogData::Decode(const rocksdb::Slice &blob) {
2127 if (blob.size() == 0) {

Callers 10

parseComplexKVMethod · 0.45
migrateComplexKeyMethod · 0.45
migrateStreamMethod · 0.45
sendSnapshotByRawKVMethod · 0.45
hashSubKeyMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
rawHashValueMethod · 0.45
hashSubKeyMethod · 0.45
putHashMetadataMethod · 0.45

Calls

no outgoing calls

Tested by 6

hashSubKeyMethod · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
rawHashValueMethod · 0.36
hashSubKeyMethod · 0.36
putHashMetadataMethod · 0.36