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

Temporary fix to prevent 100% cpu load in case of write failure

This commit is contained in:
hvlad 2005-02-17 07:29:50 +00:00
parent 93bc423bb3
commit 3e5ce4257d

View File

@ -2322,6 +2322,14 @@ bool CCH_rollover_to_shadow(Database* dbb, jrd_file* file, const bool inAst)
if (!dbb->dbb_shadow_lock) {
return false;
}
// hvlad: if there are no shadows can't rollover
// this is a temporary solution to prevent 100% CPU load
// in write_page in case of PIO_write failure
if (!dbb->dbb_shadow) {
return false;
}
/* notify other process immediately to ensure all read from sdw
file instead of db file */
return SDW_rollover_to_shadow(file, inAst);