diff options
author | Eric Milkie <milkie@10gen.com> | 2014-11-05 15:19:08 -0500 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2014-11-05 15:20:47 -0500 |
commit | ca0d6d5d907ebe39437b4032ccb4795946573183 (patch) | |
tree | e7ec4fd60a38a9f876723ebc8df390cee97deee0 /src | |
parent | 10c497c51f5738c1ebe42903f8d6bfd0f018240a (diff) | |
download | mongo-ca0d6d5d907ebe39437b4032ccb4795946573183.tar.gz |
initialize member variable
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp index 256cb63e429..9f0fda6ce20 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp @@ -140,24 +140,26 @@ namespace { return StatusWith<std::string>(ss); } - WiredTigerRecordStore::WiredTigerRecordStore( OperationContext* ctx, - const StringData& ns, - const StringData& uri, - bool isCapped, - int64_t cappedMaxSize, - int64_t cappedMaxDocs, - CappedDocumentDeleteCallback* cappedDeleteCallback, - WiredTigerSizeStorer* sizeStorer ) - : RecordStore( ns ), - _uri( uri.toString() ), - _instanceId( WiredTigerSession::genCursorId() ), - _isCapped( isCapped ), - _isOplog( NamespaceString::oplog( ns ) ), - _cappedMaxSize( cappedMaxSize ), - _cappedMaxDocs( cappedMaxDocs ), - _cappedDeleteCallback( cappedDeleteCallback ), - _useOplogHack(shouldUseOplogHack(ctx, _uri)), - _sizeStorer( sizeStorer ) { + WiredTigerRecordStore::WiredTigerRecordStore(OperationContext* ctx, + const StringData& ns, + const StringData& uri, + bool isCapped, + int64_t cappedMaxSize, + int64_t cappedMaxDocs, + CappedDocumentDeleteCallback* cappedDeleteCallback, + WiredTigerSizeStorer* sizeStorer) + : RecordStore( ns ), + _uri( uri.toString() ), + _instanceId( WiredTigerSession::genCursorId() ), + _isCapped( isCapped ), + _isOplog( NamespaceString::oplog( ns ) ), + _cappedMaxSize( cappedMaxSize ), + _cappedMaxDocs( cappedMaxDocs ), + _cappedDeleteCallback( cappedDeleteCallback ), + _useOplogHack(shouldUseOplogHack(ctx, _uri)), + _sizeStorer( sizeStorer ), + _sizeStorerCounter(0) + { if (_isCapped) { invariant(_cappedMaxSize > 0); |