From 704e20b41510eba685229e67bc2d86aaa1f41b0c Mon Sep 17 00:00:00 2001
From: Eric Cano <Eric.Cano@cern.ch>
Date: Wed, 6 Dec 2017 16:15:35 +0100
Subject: [PATCH] Fixed Scheduler::getNextMountDryRun() wrongly taking the
 scheduling lock.

---
 scheduler/Scheduler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scheduler/Scheduler.cpp b/scheduler/Scheduler.cpp
index b96b99af1a..056a4a2fbb 100644
--- a/scheduler/Scheduler.cpp
+++ b/scheduler/Scheduler.cpp
@@ -628,7 +628,7 @@ bool Scheduler::getNextMountDryRun(const std::string& logicalLibraryName, const
   double schedulerDbTime = 0;
   double catalogueTime = 0;
   std::unique_ptr<SchedulerDatabase::TapeMountDecisionInfo> mountInfo;
-  mountInfo = m_db.getMountInfo(lc);
+  mountInfo = m_db.getMountInfoNoLock(lc);
   getMountInfoTime = timer.secs(utils::Timer::resetCounter);
   std::map<tpType, uint32_t> existingMountsSummary;
   std::set<std::string> tapesInUse;
-- 
GitLab