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