mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:43:02 +01:00
Temporary fix to prevent 100% cpu load in case of write failure
This commit is contained in:
parent
93bc423bb3
commit
3e5ce4257d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user