| 1091 | } |
| 1092 | |
| 1093 | std::string Storage::GetReplIdFromDbEngine() { |
| 1094 | std::string replid_in_db; |
| 1095 | auto cf = GetCFHandle(ColumnFamilyID::Propagate); |
| 1096 | auto s = db_->Get(rocksdb::ReadOptions(), cf, kReplicationIdKey, &replid_in_db); |
| 1097 | return replid_in_db; |
| 1098 | } |
| 1099 | |
| 1100 | std::shared_lock<std::shared_mutex> Storage::ReadLockGuard() { return std::shared_lock(db_rw_lock_); } |
| 1101 |
no test coverage detected