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
@@ -399,6 +399,7 @@ resume_1:
}
}
}
bs->flusher->mark_trim_possible();
bs->journal.dirty_start = bs->journal.next_free;
printf(
"Journal entries loaded: %lu, free journal space: %lu bytes (%08lx..%08lx is used), free blocks: %lu / %lu\n",