mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
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:
parent
b777d31a98
commit
1074bcb30b
9 changed files with 93 additions and 21 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue