summaryrefslogtreecommitdiff
path: root/src/btree/bt_sync.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-08-05 07:27:26 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-08-05 07:27:26 -0400
commit3a8ed7551935f57b7bfbe4703ddc917ab2c0a9fb (patch)
tree6789fbf1debd50cf1f83751ace47e588fda4c4b7 /src/btree/bt_sync.c
parent6786af1dfab633d688f2d327106c041fa8a0b6b3 (diff)
downloadmongo-3a8ed7551935f57b7bfbe4703ddc917ab2c0a9fb.tar.gz
Don't flush leaf pages asynchronously for now; reference #1152.
Diffstat (limited to 'src/btree/bt_sync.c')
-rw-r--r--src/btree/bt_sync.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/btree/bt_sync.c b/src/btree/bt_sync.c
index c74637df524..0c92911d013 100644
--- a/src/btree/bt_sync.c
+++ b/src/btree/bt_sync.c
@@ -182,13 +182,19 @@ err: /* On error, clear any left-over tree walk. */
__wt_spin_unlock(session, &btree->flush_lock);
+#if 0
/*
* Leaves are written before a checkpoint (or as part of a file close,
* before checkpointing the file). Start a flush to stable storage,
* but don't wait for it.
+ *
+ * XXX
+ * This causes a performance drop on the wtperf ckpt-btree test; remove
+ * the flush until we understand why; reference issue #1152.
*/
if (ret == 0 && syncop == WT_SYNC_WRITE_LEAVES)
WT_RET(bm->sync(bm, session, 1));
+#endif
return (ret);
}