summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2016-06-03 14:23:11 +1000
committerMichael Cahill <michael.cahill@mongodb.com>2016-06-03 14:23:11 +1000
commitc9dfa31598c33255a5f5710d9b22a1ed648feca3 (patch)
tree309dd2bf6118a916be76552234df812942359611
parent7c4a0a1f597941f28a888e1521ea6ca631d63877 (diff)
downloadmongo-c9dfa31598c33255a5f5710d9b22a1ed648feca3.tar.gz
WT-2325 Fix an incomplete comment.
-rw-r--r--src/btree/bt_sync.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/btree/bt_sync.c b/src/btree/bt_sync.c
index 5d60c436a08..4404069e507 100644
--- a/src/btree/bt_sync.c
+++ b/src/btree/bt_sync.c
@@ -96,8 +96,10 @@ __sync_file(WT_SESSION_IMPL *session, WT_CACHE_OP syncop)
* snapshot now.
*
* All changes committed up to this point should be included.
- * We don't update the snapshot in between pages because (a)
- * the metadata shouldn't be that big, and (b) if we do ever
+ * We don't update the snapshot in between pages because the
+ * metadata shouldn't have many pages. Instead, read-committed
+ * isolation ensures that all metadata updates completed before
+ * the checkpoint are included.
*/
if (txn->isolation == WT_ISO_READ_COMMITTED)
WT_ERR(__wt_txn_get_snapshot(session));