diff options
author | Justin Seyster <justin.seyster@mongodb.com> | 2017-12-14 15:21:10 -0500 |
---|---|---|
committer | Justin Seyster <justin.seyster@mongodb.com> | 2017-12-14 15:37:19 -0500 |
commit | 3b116b0dc632a0533c8b76ddbf02186e4bf6774e (patch) | |
tree | 2f57de2f0df1acac0e0c9cae85b492b7b8ec3216 /src/mongo/db/update/storage_validation.cpp | |
parent | c0ebce4abf9b0cfd4271767fa062ea2d5b486554 (diff) | |
download | mongo-3b116b0dc632a0533c8b76ddbf02186e4bf6774e.tar.gz |
SERVER-30854 Remove ModifierInterface update code.
We left the deleted update system in 3.6 to support upgrades from 3.4,
but newer versions will always use the new UpdateNode update system.
Fun fact: this commit deletes more lines than were inserted by the
previous 100 commits.
Diffstat (limited to 'src/mongo/db/update/storage_validation.cpp')
-rw-r--r-- | src/mongo/db/update/storage_validation.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/mongo/db/update/storage_validation.cpp b/src/mongo/db/update/storage_validation.cpp index 8b5be0d95e5..1ee11881029 100644 --- a/src/mongo/db/update/storage_validation.cpp +++ b/src/mongo/db/update/storage_validation.cpp @@ -164,25 +164,5 @@ void storageValid(mutablebson::ConstElement elem, const bool deep, std::uint32_t } } -std::uint32_t storageValidParents(mutablebson::ConstElement elem, std::uint32_t recursionLevel) { - uassert(ErrorCodes::Overflow, - str::stream() << "Document exceeds maximum nesting depth of " - << BSONDepth::getMaxDepthForUserStorage(), - recursionLevel <= BSONDepth::getMaxDepthForUserStorage()); - - auto root = elem.getDocument().root(); - if (elem != root) { - auto parent = elem.parent(); - if (parent.ok() && parent != root) { - const bool doRecursiveCheck = false; - const uint32_t parentsRecursionLevel = 0; - storageValid(parent, doRecursiveCheck, parentsRecursionLevel); - return storageValidParents(parent, recursionLevel + 1); - } - return recursionLevel + 1; - } - return recursionLevel; -} - } // namespace storage_validation } // namespace mongo |