Commit 34322657 authored by Eric Cano's avatar Eric Cano
Browse files

Switched the fetching of the queue/drive information to lock free when scheduling.

The locking of the scheduler global lock is retained so only on drive can create a mount at any point in time.
parent f55e8288
......@@ -278,7 +278,7 @@ std::unique_ptr<SchedulerDatabase::TapeMountDecisionInfo>
tmdi.m_lockTaken = true;
tmdi.m_schedulerGlobalLock->fetch();
auto fetchSchedGlobalTime = t.secs(utils::Timer::resetCounter);;
fetchMountInfo(tmdi, re, logContext);
fetchMountInfo(tmdi, re, logContext, FetchFlavour::noLock);
auto fetchMountInfoTime = t.secs(utils::Timer::resetCounter);
std::unique_ptr<SchedulerDatabase::TapeMountDecisionInfo> ret(std::move(privateRet));
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment