diff options
author | Mathias Stearn <mathias@10gen.com> | 2014-11-26 15:04:26 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2014-11-26 15:15:59 -0500 |
commit | 16a8ef7ad60d498b69bdc0ad5cbca44757d16fd8 (patch) | |
tree | 2d9f056acf8f1b9b2e943f82e315bdf019475a38 /src/mongo/dbtests/query_stage_count.cpp | |
parent | cb5cab88761d9aca75e064665cce89f579c69e36 (diff) | |
download | mongo-16a8ef7ad60d498b69bdc0ad5cbca44757d16fd8.tar.gz |
SERVER-13679 Replace DiskLoc with RecordId outside of MMAPv1
Operations:
sed -i -e 's/\<DiskLoc\>/RecordId/g'
sed -i -e 's/\<DiskLocs\>/RecordIds/g'
sed -i -e 's/\<minDiskLoc\>/RecordId::min()/g'
sed -i -e 's/\<maxDiskLoc\>/RecordId::max()/g'
sed -i -e 's/\<getDiskLoc\>/getRecordId/g''
Changes under mmap_v1 were reverted and redone by hand as needed.
Diffstat (limited to 'src/mongo/dbtests/query_stage_count.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_count.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/dbtests/query_stage_count.cpp b/src/mongo/dbtests/query_stage_count.cpp index 3593d0841e3..4338880ec73 100644 --- a/src/mongo/dbtests/query_stage_count.cpp +++ b/src/mongo/dbtests/query_stage_count.cpp @@ -106,13 +106,13 @@ namespace QueryStageCount { wunit.commit(); } - void remove(const DiskLoc& loc) { + void remove(const RecordId& loc) { WriteUnitOfWork wunit(&_txn); _coll->deleteDocument(&_txn, loc, false, false, NULL); wunit.commit(); } - void update(const DiskLoc& oldLoc, const BSONObj& newDoc) { + void update(const RecordId& oldLoc, const BSONObj& newDoc) { WriteUnitOfWork wunit(&_txn); _coll->updateDocument(&_txn, oldLoc, newDoc, false, NULL); wunit.commit(); @@ -216,7 +216,7 @@ namespace QueryStageCount { static const char* ns() { return "unittest.QueryStageCount"; } protected: - vector<DiskLoc> _locs; + vector<RecordId> _locs; OperationContextImpl _txn; Lock::DBLock _dbLock; Client::Context _ctx; |