File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ void NBackupStateLock::blockingAstHandler(thread_db* tdbb)
120120 }
121121
122122 { // scope
123+ backup_manager->stateBlocking = true ;
123124 Firebird::MutexUnlockGuard counterGuard (counterMutex, FB_FUNCTION );
124125 backup_manager->stateBlocking = !backup_manager->localStateLock .tryBeginWrite (FB_FUNCTION );
125126 if (backup_manager->stateBlocking )
Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ class BackupManager
510510 bool shutDown;
511511 bool allocIsValid; // true, if alloc table cache is completely read from disk
512512 bool master; // this instance performs current begin\end backup process
513- bool stateBlocking; // blocking AST handler doesn't released stateLock
513+ std::atomic_bool stateBlocking; // blocking AST handler doesn't released stateLock
514514
515515 NBackupStateLock* stateLock;
516516 Firebird::RWLock localStateLock; // must be acquired before global stateLock
You can’t perform that action at this time.
0 commit comments