Skip to content

Commit

Permalink
Fix thread priority for attachmentShutdownThread (it was run at lowes…
Browse files Browse the repository at this point in the history
…t priority)
  • Loading branch information
hvlad committed Mar 19, 2018
1 parent 89c6e67 commit 81908fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jrd/jrd.cpp
Expand Up @@ -8028,7 +8028,7 @@ void JRD_shutdown_attachment(Attachment* attachment)
attachment->getStable()->addRef();
queue->add(attachment->getStable());

Thread::start(attachmentShutdownThread, queue, 0);
Thread::start(attachmentShutdownThread, queue, THREAD_high);
}
catch (const Exception&)
{} // no-op
Expand Down Expand Up @@ -8073,7 +8073,7 @@ void JRD_shutdown_attachments(Database* dbb)
}

if (queue.hasData())
Thread::start(attachmentShutdownThread, queue.release(), 0);
Thread::start(attachmentShutdownThread, queue.release(), THREAD_high);
}
catch (const Exception&)
{} // no-op
Expand Down

0 comments on commit 81908fd

Please sign in to comment.