MCPcopy Create free account
hub / github.com/XTXMarkets/ternfs / LogMetadata

Method LogMetadata

cpp/core/LogsDB.cpp:403–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401class LogMetadata {
402public:
403 LogMetadata(Env& env, LogsDBStats& stats, SharedRocksDB& sharedDb, ReplicaId replicaId, DataPartitions& data) :
404 _env(env),
405 _stats(stats),
406 _sharedDb(sharedDb),
407 _cf(sharedDb.getCF(METADATA_CF_NAME)),
408 _replicaId(replicaId),
409 _data(data),
410 _nomineeToken(LeaderToken(0,0))
411 {}
412
413 bool isInitialStart() {
414 auto it = std::unique_ptr<rocksdb::Iterator>(_sharedDb.db()->NewIterator({},_cf));

Callers

nothing calls this directly

Calls 2

getCFMethod · 0.80
LeaderTokenClass · 0.70

Tested by

no test coverage detected