feat: allow reading offloaded strings without loading to the store (#2449)

* feat: allow reading offloaded strings without loading to the store

* Add disk stats to IoMgr

---------

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-01-23 11:27:14 +02:00 committed by GitHub
parent b777d31a98
commit 1074bcb30b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 93 additions and 21 deletions

View file

@ -122,8 +122,14 @@ void RecordExpiry(DbIndex dbid, std::string_view key);
// Must be called from shard thread of journal to sink.
void TriggerJournalWriteToSink();
struct IoMgrStats {
uint64_t read_total = 0;
uint64_t read_delay_usec = 0;
IoMgrStats& operator+=(const IoMgrStats& rhs);
};
struct TieredStats {
uint64_t tiered_reads = 0;
uint64_t tiered_writes = 0;
size_t storage_capacity = 0;