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/db/index/btree_based_bulk_access_method.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/db/index/btree_based_bulk_access_method.cpp')
-rw-r--r-- | src/mongo/db/index/btree_based_bulk_access_method.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/index/btree_based_bulk_access_method.cpp b/src/mongo/db/index/btree_based_bulk_access_method.cpp index 1936b83ef65..b50769c351e 100644 --- a/src/mongo/db/index/btree_based_bulk_access_method.cpp +++ b/src/mongo/db/index/btree_based_bulk_access_method.cpp @@ -56,7 +56,7 @@ namespace mongo { invariant(version == 1 || version == 0); } - typedef std::pair<BSONObj, DiskLoc> Data; + typedef std::pair<BSONObj, RecordId> Data; int operator() (const Data& l, const Data& r) const { int x = (_version == 1 @@ -91,7 +91,7 @@ namespace mongo { Status BtreeBasedBulkAccessMethod::insert(OperationContext* txn, const BSONObj& obj, - const DiskLoc& loc, + const RecordId& loc, const InsertDeleteOptions& options, int64_t* numInserted) { BSONObjSet keys; @@ -114,7 +114,7 @@ namespace mongo { return Status::OK(); } - Status BtreeBasedBulkAccessMethod::commit(set<DiskLoc>* dupsToDrop, + Status BtreeBasedBulkAccessMethod::commit(set<RecordId>* dupsToDrop, bool mayInterrupt, bool dupsAllowed) { Timer timer; @@ -187,4 +187,4 @@ namespace mongo { } // namespace mongo #include "mongo/db/sorter/sorter.cpp" -MONGO_CREATE_SORTER(mongo::BSONObj, mongo::DiskLoc, mongo::BtreeExternalSortComparison); +MONGO_CREATE_SORTER(mongo::BSONObj, mongo::RecordId, mongo::BtreeExternalSortComparison); |