diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-08-07 16:19:50 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-08-15 15:09:51 -0400 |
commit | 4c2e46a3e0873cea3564f02c23a6283078970ee9 (patch) | |
tree | 1a488afd037bc8e9103bd01c56c6aab9761a472d /src/mongo/db/storage/biggie | |
parent | b83c5312dc5f437480de10487f945933a96a7ccd (diff) | |
download | mongo-4c2e46a3e0873cea3564f02c23a6283078970ee9.tar.gz |
SERVER-36278 Remove the 1KB index key size limit in FCV42
Diffstat (limited to 'src/mongo/db/storage/biggie')
-rw-r--r-- | src/mongo/db/storage/biggie/biggie_sorted_impl.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/db/storage/biggie/biggie_sorted_impl.cpp b/src/mongo/db/storage/biggie/biggie_sorted_impl.cpp index 66beebd5aba..d77252eb524 100644 --- a/src/mongo/db/storage/biggie/biggie_sorted_impl.cpp +++ b/src/mongo/db/storage/biggie/biggie_sorted_impl.cpp @@ -55,8 +55,6 @@ namespace mongo { namespace biggie { namespace { -const int TempKeyMaxSize = 1024; // this goes away with SERVER-3372 - // This function is the same as the one in record store--basically, using the git analogy, create // a working branch if one does not exist. StringStore* getRecoveryUnitBranch_forking(OperationContext* opCtx) { @@ -242,10 +240,6 @@ void SortedDataBuilderInterface::commit(bool mayInterrupt) { Status SortedDataBuilderInterface::addKey(const BSONObj& key, const RecordId& loc) { StringStore* workingCopy = getRecoveryUnitBranch_forking(_opCtx); - if (key.objsize() >= TempKeyMaxSize) { - return Status(ErrorCodes::KeyTooLong, "key too big"); - } - invariant(loc.isNormal()); invariant(!hasFieldNames(key)); @@ -322,10 +316,6 @@ Status SortedDataInterface::insert(OperationContext* opCtx, StringStore* workingCopy = getRecoveryUnitBranch_forking(opCtx); - if (key.objsize() >= TempKeyMaxSize) { - return Status(ErrorCodes::KeyTooLong, "Error: key too long"); - } - if (workingCopy->find(workingCopyInsertKey) != workingCopy->end()) { return Status::OK(); } |