Write recheck_modified_blocks to disk

This commit is contained in:
Vitaliy Filippov
2025-12-02 01:52:12 +03:00
parent daf2cc3fb1
commit 378fff6f67
5 changed files with 58 additions and 1 deletions
+3
View File
@@ -221,6 +221,9 @@ public:
bool allow_corrupted, uint64_t &entries_loaded);
// finish loading
int finish_load(bool allow_corrupted = false);
// get blocks which are modified during loading and should be written to the disk
// before finishing initialization if not R/O
std::vector<uint32_t> get_recheck_modified_blocks();
// recheck small write data after reading the database from disk
bool recheck_small_writes(std::function<void(bool is_data, uint64_t offset, uint64_t len, uint8_t* buf, std::function<void()>)> read_buffer, int queue_depth);
// reshard database according to the pool's PG count