mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 04:03:04 +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;
|
||||
#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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user