This commit is contained in:
Vitaliy Filippov
2025-12-02 01:52:12 +03:00
parent 8f92979a18
commit 852734270e
7 changed files with 90 additions and 119 deletions
+7 -1
View File
@@ -71,6 +71,12 @@ struct blockstore_op_private_t
timespec tv_begin;
};
struct bs_modified_block_t
{
bool sent;
uint8_t *buf;
};
class blockstore_impl_t: public blockstore_i
{
public:
@@ -117,7 +123,7 @@ public:
uint8_t *zero_object = NULL;
std::vector<uint32_t> pending_modified_blocks;
robin_hood::unordered_flat_map<uint32_t, bool> modified_blocks;
robin_hood::unordered_flat_map<uint32_t, bs_modified_block_t> modified_blocks;
journal_flusher_t *flusher;
int write_iodepth = 0;