Try to write into blocks with more garbage first

This commit is contained in:
Vitaliy Filippov
2026-04-02 13:48:17 +00:00
parent 9949b9fb4e
commit 99c4244004
2 changed files with 37 additions and 26 deletions
+6 -3
View File
@@ -117,10 +117,13 @@ struct heap_object_mvcc_t
struct heap_block_info_t
{
uint32_t used_space = 0;
struct __attribute__((__packed__))
{
uint32_t used_space = 0;
uint32_t garbage_space = 0;
};
uint64_t mod_lsn = 0, mod_lsn_to = 0; // only 1 block write of LSN sequence is allowed at a moment
bool is_writing: 1;
bool has_garbage: 1;
bool is_writing = false;
std::vector<heap_list_item_t*> entries;
};