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

Function tryGet

cpp/core/LogsDB.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39static bool tryGet(rocksdb::DB* db, rocksdb::ColumnFamilyHandle* cf, const rocksdb::Slice& key, std::string& value) {
40 auto status = db->Get({}, cf, key, &value);
41 if (status.IsNotFound()) {
42 return false;
43 }
44 ROCKS_DB_CHECKED(status);
45 return true;
46};
47
48static constexpr auto METADATA_CF_NAME = "logMetadata";
49static constexpr auto DATA_PARTITION_0_NAME = "logTimePartition0";

Callers 2

initMethod · 0.85
initMethod · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected