From 441199c1ef685889a639c95fa4ec456ac1e469ad Mon Sep 17 00:00:00 2001
From: Eric Cano <Eric.Cano@cern.ch>
Date: Mon, 19 Jun 2017 14:42:22 +0200
Subject: [PATCH] Moved annotations closed to future::get().

---
 scheduler/OStoreDB/MemQueues.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scheduler/OStoreDB/MemQueues.cpp b/scheduler/OStoreDB/MemQueues.cpp
index 88bf99694c..3aaacaa57c 100644
--- a/scheduler/OStoreDB/MemQueues.cpp
+++ b/scheduler/OStoreDB/MemQueues.cpp
@@ -59,10 +59,10 @@ std::shared_ptr<SharedQueueLock> MemArchiveQueue::sharedAddToArchiveQueue(object
   globalLock.unlock();
   // Wait for our request completion (this could throw, if there was a problem)
   resultFuture.get();
-  auto ret=maqr->m_returnValue;
-  __attribute__((unused)) auto debugMaqr=maqr.get();
   ANNOTATE_HAPPENS_AFTER(&maqr->m_promise);
   ANNOTATE_HAPPENS_BEFORE_FORGET_ALL(&maqr->m_promise);
+  auto ret=maqr->m_returnValue;
+  __attribute__((unused)) auto debugMaqr=maqr.get();
   maqr.reset();
   return ret;
 }
-- 
GitLab