]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd/AioImageRequest.cc: reduce scope of var
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 17 Feb 2016 14:06:25 +0000 (15:06 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 19 Feb 2016 11:51:11 +0000 (12:51 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/librbd/AioImageRequest.cc

index fc77ea73f2e7277570262e3540e65c6bbac84bc9..7e0e0fb861dec1182c5e82663383a406e705241d 100644 (file)
@@ -222,7 +222,6 @@ void AbstractAioImageWrite::send_request() {
   RWLock::RLocker md_locker(m_image_ctx.md_lock);
 
   bool journaling = false;
-  uint64_t journal_tid = 0;
 
   uint64_t clip_len = m_len;
   ObjectExtents object_extents;
@@ -257,6 +256,7 @@ void AbstractAioImageWrite::send_request() {
   }
 
   if (!object_extents.empty()) {
+    uint64_t journal_tid = 0;
     m_aio_comp->set_request_count(
       cct, object_extents.size() + get_cache_request_count(journaling));