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:
parent
71017c810b
commit
9a9cfb31df
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user