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

Method GetReplIdFromDbEngine

src/storage/storage.cc:1093–1098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1091}
1092
1093std::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
1100std::shared_lock<std::shared_mutex> Storage::ReadLockGuard() { return std::shared_lock(db_rw_lock_); }
1101

Callers 1

tryPSyncWriteCBMethod · 0.80

Calls 2

ReadOptionsClass · 0.85
GetMethod · 0.45

Tested by

no test coverage detected