From: Sage Weil Date: Wed, 25 Feb 2009 20:37:28 +0000 (-0800) Subject: filestore: don't initiate sync on _start_sync if there's a journal X-Git-Tag: v0.7~150 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9643b96035ab3cf3e3e8dc114f07b394b7ad414b;p=ceph.git filestore: don't initiate sync on _start_sync if there's a journal Journal will commit immediately anyway.. don't slow the rest down with a full commit to disk. --- diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 828b0fbe770..b83ada5fdae 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -1444,7 +1444,8 @@ void FileStore::sync_entry() void FileStore::_start_sync() { dout(10) << "start_sync" << dendl; - sync_cond.Signal(); + if (!journal) // don't do a big sync if the journal is on + sync_cond.Signal(); } void FileStore::sync()