From 450afc3966ed1a3b06079d14fe80f966009fc994 Mon Sep 17 00:00:00 2001 From: Zach Yam Date: Mon, 17 Jun 2019 15:18:44 -0400 Subject: SERVER-41311 Invariant that restore() is called on the RecordCursor prior to its usage, after save() was called --- src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h') diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h index 3e2121cdd5d..8bdfdaecdd6 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h @@ -456,6 +456,7 @@ protected: boost::optional _cursor; bool _eof = false; RecordId _lastReturnedId; // If null, need to seek to first/last record. + bool _hasRestored = true; private: bool isVisible(const RecordId& id); -- cgit v1.2.1