diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-08-20 12:40:32 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-08-21 13:46:28 -0400 |
commit | 8775c15cca254796fa558312da1aa365912a2050 (patch) | |
tree | 5c3a2d4e7ceccafdf97c47180c490d2f73be8e1c /src/mongo/db/storage/biggie | |
parent | 3f62e3db2f452c713b5b63220034a01e67632207 (diff) | |
download | mongo-8775c15cca254796fa558312da1aa365912a2050.tar.gz |
SERVER-42923 Callers of dupKeyCheck should pass KeyString
Diffstat (limited to 'src/mongo/db/storage/biggie')
-rw-r--r-- | src/mongo/db/storage/biggie/biggie_sorted_impl.cpp | 6 | ||||
-rw-r--r-- | src/mongo/db/storage/biggie/biggie_sorted_impl.h | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/db/storage/biggie/biggie_sorted_impl.cpp b/src/mongo/db/storage/biggie/biggie_sorted_impl.cpp index 533df0fa552..3ec22cf745e 100644 --- a/src/mongo/db/storage/biggie/biggie_sorted_impl.cpp +++ b/src/mongo/db/storage/biggie/biggie_sorted_impl.cpp @@ -469,12 +469,6 @@ Status SortedDataInterface::truncate(OperationContext* opCtx) { return Status::OK(); } -Status SortedDataInterface::dupKeyCheck(OperationContext* opCtx, const BSONObj& key) { - KeyString::Builder ks(KeyString::Version::V1, key, _ordering); - - return dupKeyCheck(opCtx, ks.getValueCopy()); -} - Status SortedDataInterface::dupKeyCheck(OperationContext* opCtx, const KeyString::Value& key) { invariant(_isUnique); StringStore* workingCopy(RecoveryUnit::get(opCtx)->getHead()); diff --git a/src/mongo/db/storage/biggie/biggie_sorted_impl.h b/src/mongo/db/storage/biggie/biggie_sorted_impl.h index 1d3970ea74a..36ba010f404 100644 --- a/src/mongo/db/storage/biggie/biggie_sorted_impl.h +++ b/src/mongo/db/storage/biggie/biggie_sorted_impl.h @@ -89,7 +89,6 @@ public: const KeyString::Value& keyString, const RecordId& loc, bool dupsAllowed) override; - virtual Status dupKeyCheck(OperationContext* opCtx, const BSONObj& key) override; virtual Status dupKeyCheck(OperationContext* opCtx, const KeyString::Value& keyString) override; virtual void fullValidate(OperationContext* opCtx, long long* numKeysOut, |