summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2018-05-21 17:49:25 -0400
committerGeert Bosch <geert@mongodb.com>2018-06-09 18:04:52 -0400
commitc7451c0e11c2a782e9c0dabe16cbad744e4c451a (patch)
tree083cc6eba4151540ccc4093376268dd08b146d99 /src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h
parentf78e580dad60fa6ece39f34b3dcfc3ed95b85414 (diff)
downloadmongo-c7451c0e11c2a782e9c0dabe16cbad744e4c451a.tar.gz
SERVER-34713 Change WT size storer to just buffer writes, not cache
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h')
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h
index 4d89d2a04fb..152a4a61b5f 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.h
@@ -31,6 +31,7 @@
#pragma once
+#include <memory>
#include <set>
#include <string>
#include <wiredtiger.h>
@@ -41,6 +42,7 @@
#include "mongo/db/storage/record_store.h"
#include "mongo/db/storage/wiredtiger/wiredtiger_kv_engine.h"
#include "mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h"
+#include "mongo/db/storage/wiredtiger/wiredtiger_size_storer.h"
#include "mongo/platform/atomic_word.h"
#include "mongo/stdx/condition_variable.h"
#include "mongo/stdx/mutex.h"
@@ -355,12 +357,9 @@ private:
mutable stdx::timed_mutex _cappedDeleterMutex;
AtomicInt64 _nextIdNum;
- AtomicInt64 _dataSize;
- AtomicInt64 _numRecords;
WiredTigerSizeStorer* _sizeStorer; // not owned, can be NULL
- int _sizeStorerCounter;
-
+ std::shared_ptr<WiredTigerSizeStorer::SizeInfo> _sizeInfo;
WiredTigerKVEngine* _kvEngine; // not owned.
// Non-null if this record store is underlying the active oplog.