]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/FileStore.cc: move variable async_done to the right #ifdef block
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 13:06:10 +0000 (14:06 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 11 Mar 2013 13:06:10 +0000 (14:06 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/FileStore.cc

index e0ad7799a9c7a62a1caf5a80cecd621a1ac68151..a0c7a717730dcb8d4524b7e09f6d75c89a98d418 100644 (file)
@@ -2910,8 +2910,8 @@ int FileStore::_write(coll_t cid, const hobject_t& oid,
   {
     bool should_flush = (ssize_t)len >= m_filestore_flush_min;
     bool local_flush = false;
-    bool async_done = false;
 #ifdef HAVE_SYNC_FILE_RANGE
+    bool async_done = false;
     if (!should_flush ||
        !m_filestore_flusher ||
        !(async_done = queue_flusher(fd, offset, len, replica))) {