mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16:43:03 +01:00
Postfix for #7917: Hang in a case of error when sweep thread is attaching to database; avoid segfault when sweep thread is closing on error
This commit is contained in:
parent
6d947803e2
commit
8295aeb26c
@ -2854,7 +2854,7 @@ static void start_sweeper(thread_db* tdbb)
|
||||
}
|
||||
|
||||
AutoPtr<SweepSync> sweepSync(FB_NEW SweepSync(*getDefaultMemoryPool(), SweepParameter::runSweep));
|
||||
SweepParameter* swPar = FB_NEW_POOL(*dbb->dbb_permanent) SweepParameter(dbb);
|
||||
SweepParameter* swPar = FB_NEW SweepParameter(dbb);
|
||||
sweepSync->run(swPar);
|
||||
started = true;
|
||||
sweepThreads().add(sweepSync.release());
|
||||
|
Loading…
Reference in New Issue
Block a user