Skip to content

Commit

Permalink
Fixed CORE-1890.
Browse files Browse the repository at this point in the history
  • Loading branch information
dyemanov committed May 8, 2008
1 parent 8fdb98f commit e02469b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/jrd/DatabaseSnapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,8 @@ DatabaseSnapshot::DatabaseSnapshot(thread_db* tdbb, MemoryPool& pool)
{
dumpData(tdbb, true);

// Release our own lock and mark dbb as requesting a new one
// Release our own lock
LCK_release(tdbb, dbb->dbb_monitor_lock);
dbb->dbb_ast_flags |= DBB_monitor_off;

// Signal other processes to dump their data
Lock temp_lock, *lock = &temp_lock;
Expand All @@ -462,6 +461,9 @@ DatabaseSnapshot::DatabaseSnapshot(thread_db* tdbb, MemoryPool& pool)
if (LCK_lock(tdbb, lock, LCK_EX, LCK_WAIT))
LCK_release(tdbb, lock);

// Mark dbb as requesting a new lock
dbb->dbb_ast_flags |= DBB_monitor_off;

// Read the shared memory
DumpGuard guard(dump);
reader = dump->readData(tdbb);
Expand Down

0 comments on commit e02469b

Please sign in to comment.