8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 17:23:04 +01:00
This commit is contained in:
asfernandes 2007-02-23 01:42:10 +00:00
parent c6ac8f8115
commit d87a30bf0c
5 changed files with 12 additions and 12 deletions

View File

@ -5988,6 +5988,7 @@ static bool set_write_direction(thread_db* tdbb, Database* dbb, BufferDesc* bdb,
bdb->bdb_write_direction = BDB_write_undefined;
return false;
}
// fall through
case BDB_write_undefined:
dbb->dbb_backup_manager->decrement_diff_use_count();
}

View File

@ -354,7 +354,7 @@ namespace Jrd {
AstInhibit(const AstInhibit&);
bool enabled;
};
#else
#else // MULTI_THREAD
class AstInhibit : public SignalInhibit
//
// This class inhibits signals' processing.
@ -367,9 +367,8 @@ namespace Jrd {
// Forbid copy constructor
AstInhibit(const AstInhibit&);
};
#endif
}
#endif // MULTI_THREAD
} // namespace Jrd
#endif /* JRD_ISC_H */
#endif // JRD_ISC_H

View File

@ -6093,7 +6093,7 @@ static void release_attachment(Attachment* attachment)
/* bug #7781, need to null out the attachment pointer of all locks which
were hung off this attachment block, to ensure that the attachment
block doesn't get dereferenced after it is released */
{
{ // scope for aiHolder
// Disable delivery of ASTs for the moment while queue of locks is in flux
AstInhibit aiHolder;
Lock* long_lock = attachment->att_long_locks;

View File

@ -75,4 +75,4 @@ private:
#endif
};
#endif /* JRD_ISC_I_PROTO_H */
#endif // JRD_ISC_I_PROTO_H

View File

@ -1203,7 +1203,7 @@ void LOCK_re_post( lock_ast_t ast, void* arg, SRQ_PTR owner_offset)
owner->own_flags &= ~OWN_signal;
owner->own_ast_flags |= OWN_signaled;
DEBUG_DELAY;
{
{ // scope for siHolder
SignalInhibit siHolder;
DEBUG_DELAY;
blocking_action2(owner_offset, (SRQ_PTR) NULL);
@ -3861,7 +3861,7 @@ static void release_mutex(void)
**************************************/
DEBUG_DELAY;
{
{ // scope for siHolder
SignalInhibit siHolder;
DEBUG_DELAY;
@ -4096,7 +4096,7 @@ static int signal_owner( own* blocking_owner, SRQ_PTR blocked_owner_offset)
#ifndef USE_BLOCKING_THREAD
if (blocking_owner->own_process_id == LOCK_pid) {
DEBUG_DELAY;
{
{ // scope for siHolder
SignalInhibit siHolder;
DEBUG_DELAY;
blocking_action2(SRQ_REL_PTR(blocking_owner), blocked_owner_offset);
@ -4796,7 +4796,7 @@ static USHORT wait_for_request(
/* Before starting to wait - look to see if someone resolved
the request for us - if so we're out easy! */
{
{ // scope for siHolder
SignalInhibit siHolder;
request = (LRQ) SRQ_ABS_PTR(request_offset);
if (!(request->lrq_flags & LRQ_pending)) {
@ -4903,7 +4903,7 @@ static USHORT wait_for_request(
/* If somebody else has resolved the lock, we're done */
{
{ // scope for siHolder
SignalInhibit siHolder;
request = (LRQ) SRQ_ABS_PTR(request_offset);
if (!(request->lrq_flags & LRQ_pending)) {