]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: don't initiate sync on _start_sync if there's a journal
authorSage Weil <sage@newdream.net>
Wed, 25 Feb 2009 20:37:28 +0000 (12:37 -0800)
committerSage Weil <sage@newdream.net>
Wed, 25 Feb 2009 20:37:28 +0000 (12:37 -0800)
Journal will commit immediately anyway.. don't slow the rest
down with a full commit to disk.

src/os/FileStore.cc

index 828b0fbe770821a15db01442b5ddc4387b1c58c0..b83ada5fdae1459274a8033834e497623cdab83f 100644 (file)
@@ -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()