mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 10:43:03 +01:00
fixed correct logic, broken by my last commit
This commit is contained in:
parent
c2c3584209
commit
8b2abbdb65
@ -5965,6 +5965,7 @@ static bool set_write_direction(thread_db* tdbb, Database* dbb, BufferDesc* bdb,
|
|||||||
bdb->bdb_write_direction = direction;
|
bdb->bdb_write_direction = direction;
|
||||||
#else
|
#else
|
||||||
AstInhibit aiHolder;
|
AstInhibit aiHolder;
|
||||||
|
|
||||||
switch (bdb->bdb_write_direction) {
|
switch (bdb->bdb_write_direction) {
|
||||||
case BDB_write_normal:
|
case BDB_write_normal:
|
||||||
case BDB_write_both:
|
case BDB_write_both:
|
||||||
@ -5989,9 +5990,10 @@ static bool set_write_direction(thread_db* tdbb, Database* dbb, BufferDesc* bdb,
|
|||||||
bdb->bdb_write_direction = BDB_write_undefined;
|
bdb->bdb_write_direction = BDB_write_undefined;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// fall through
|
break;
|
||||||
case BDB_write_undefined:
|
case BDB_write_undefined:
|
||||||
dbb->dbb_backup_manager->decrement_diff_use_count();
|
dbb->dbb_backup_manager->decrement_diff_use_count();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BDB_write_undefined:
|
case BDB_write_undefined:
|
||||||
@ -6007,6 +6009,7 @@ static bool set_write_direction(thread_db* tdbb, Database* dbb, BufferDesc* bdb,
|
|||||||
bdb->bdb_write_direction = BDB_write_undefined;
|
bdb->bdb_write_direction = BDB_write_undefined;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user