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

Fixed the recently introduced deadlock. This is the simplest possible patch, other solutions are possible.

This commit is contained in:
dimitr 2013-01-30 11:23:17 +00:00
parent 71017c810b
commit 9a9cfb31df

View File

@ -214,6 +214,7 @@ public:
} }
fb_assert(sync); fb_assert(sync);
sync->lock(ast);
if (ast && dbb->dbb_flags & DBB_not_in_use) if (ast && dbb->dbb_flags & DBB_not_in_use)
{ {
@ -240,7 +241,6 @@ public:
{ {
sync = dbb->dbb_sync; sync = dbb->dbb_sync;
sync->addRef(); sync->addRef();
sync->lock(ast);
} }
private: private: