os/FileStore.cc: move variable async_done to the right #ifdef block

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2013-03-11 14:06:10 +01:00
parent 2a94340019
commit 868447d65d

View 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))) {