Attempt journal trim even without new flushes

This is the new guaranteed unblocking method which replaces old trims
in init and rollback, and also fixes a possible stall when just several
writes in the beginning of the journal are flushed without triggering
a subsequent trim.
This commit is contained in:
Vitaliy Filippov
2020-10-24 01:28:47 +03:00
parent 5fbe36198a
commit faa5e1436f
4 changed files with 35 additions and 14 deletions
+1
View File
@@ -103,6 +103,7 @@ public:
~journal_flusher_t();
void loop();
bool is_active();
void mark_trim_possible();
void request_trim();
void release_trim();
void enqueue_flush(obj_ver_id oid);