mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:40:38 +01:00
Fixed bug CORE-5720 : Sweep in Firebird 3 in CS mode could run too slow when there is big load on server
This commit is contained in:
parent
2a53615e0d
commit
315767d8cd
@ -1827,8 +1827,7 @@ void CCH_release(thread_db* tdbb, WIN* window, const bool release_tail)
|
||||
const bool mustWrite = (bdb->bdb_flags & BDB_must_write) ||
|
||||
bcb->bcb_database->dbb_backup_manager->databaseFlushInProgress();
|
||||
|
||||
// if (bdb->bdb_writers == 1 || bdb->bdb_use_count == 1)
|
||||
if (bdb->bdb_writers == 1 ||
|
||||
if (bdb->bdb_writers == 1 || bdb->bdb_use_count == 1 ||
|
||||
(bdb->bdb_writers == 0 && mustWrite))
|
||||
{
|
||||
const bool marked = bdb->bdb_flags & BDB_marked;
|
||||
|
Loading…
Reference in New Issue
Block a user