8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 15:23:03 +01:00

Backport fix for bug CORE-3079 : Strong slowing down inserts with EVENT-s in a single transaction

This commit is contained in:
hvlad 2010-07-26 11:05:14 +00:00
parent 61db4e4da4
commit 21bf6b821c

View File

@ -620,15 +620,20 @@ void DFW_merge_work(jrd_tra* transaction,
oldSp->hash.remove(*work); // After ++itr
work->dfw_sav_number = new_sav_number;
if (!newSp->hash.lookup(*work))
DeferredWork* foundWork = newSp->hash.lookup(*work);
if (!foundWork)
{
newSp->hash.add(work);
}
else
{
foundWork->dfw_count += work->dfw_count;
delete work;
}
}
job->hash.remove(old_sav_number);
delete oldSp;
}