Limit the number of unstable versions per object

This commit is contained in:
Vitaliy Filippov
2025-12-02 01:52:12 +03:00
parent a1a449686a
commit 4340082315
5 changed files with 32 additions and 12 deletions
+2 -2
View File
@@ -790,9 +790,9 @@ resume_5:
if (immediate_commit == IMMEDIATE_NONE)
{
unstable_write_count++;
if (unstable_write_count >= autosync_writes)
if (unstable_write_count >= autosync_writes ||
unstable_per_object >= autosync_dirty_per_object)
{
unstable_write_count = 0;
autosync();
}
}