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

fixed correct logic, broken by my last commit

This commit is contained in:
alexpeshkoff 2007-02-24 11:28:51 +00:00
parent c2c3584209
commit 8b2abbdb65

View File

@ -5965,6 +5965,7 @@ static bool set_write_direction(thread_db* tdbb, Database* dbb, BufferDesc* bdb,
bdb->bdb_write_direction = direction;
#else
AstInhibit aiHolder;
switch (bdb->bdb_write_direction) {
case BDB_write_normal:
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;
return false;
}
// fall through
break;
case BDB_write_undefined:
dbb->dbb_backup_manager->decrement_diff_use_count();
break;
}
break;
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;
return false;
}
break;
}
break;
}