From 03ef94b8fe57122ec623024a6362417f95f6fbf4 Mon Sep 17 00:00:00 2001
From: Daniele Kruse <dkruse@cern.ch>
Date: Wed, 21 Oct 2015 16:32:25 +0200
Subject: [PATCH] Fixed buggy typo

---
 objectstore/TapePool.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/objectstore/TapePool.cpp b/objectstore/TapePool.cpp
index 384e8f9491..705b39fa80 100644
--- a/objectstore/TapePool.cpp
+++ b/objectstore/TapePool.cpp
@@ -129,7 +129,7 @@ void cta::objectstore::TapePool::removeTapeAndCommit(const std::string& vid) {
           << vid << " found: " << t.getVid();
       throw WrongTape(err.str());
     }
-    if(t.isEmpty()) {
+    if(!t.isEmpty()) {
       throw exception::Exception("Cannot delete the tape: it has queued retrieve jobs");
     }
     // We can now delete the tape
-- 
GitLab