Skip to content

Commit

Permalink
wait for DumpDb() to finish
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzen committed Dec 9, 2019
1 parent 61bd1de commit efc88a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ bool isDumpDbRunning = false;

extern "C" void DumpDb() {
if (isDumpDbRunning == true) {
while (isDumpDbRunning) {
sleep (1); // Wait for the dump to complete
}
return;
}
isDumpDbRunning = true;
Expand Down

0 comments on commit efc88a1

Please sign in to comment.