summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp')
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp
index 26aa8e6e7a0..a83bd10d82b 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp
@@ -857,9 +857,8 @@ WiredTigerRecordStore::WiredTigerRecordStore(WiredTigerKVEngine* kvEngine,
}
// If no SizeStorer is in use, start counting at zero. In practice, this will only ever be the
- // the case for temporary RecordStores (those not associated with any collection) and in unit
- // tests. Persistent size information is not required in either case. If a RecordStore needs
- // persistent size information, we require it to use a SizeStorer.
+ // the case in unit tests. Persistent size information is not required in this case. If a
+ // RecordStore needs persistent size information, we require it to use a SizeStorer.
_sizeInfo = _sizeStorer ? _sizeStorer->load(_uri)
: std::make_shared<WiredTigerSizeStorer::SizeInfo>(0, 0);
}