| 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 |
nothing calls this directly
no test coverage detected