summaryrefslogtreecommitdiff
path: root/src/mongo/db/update/rename_node.cpp
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2020-04-09 16:29:36 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-20 15:41:45 +0000
commitfccca7a804efdaf008ba859ceeb09d62444b2738 (patch)
tree15c291a2fb065caa4183b3ccd759c0d4ff3703b6 /src/mongo/db/update/rename_node.cpp
parent61f5d6cf5087d656ebc4bbd2bf75a0a5eacb9cad (diff)
downloadmongo-fccca7a804efdaf008ba859ceeb09d62444b2738.tar.gz
SERVER-47476 Use small_vector to be able to store a few multikey components without allocating memory
Also cleaned up FieldRef
Diffstat (limited to 'src/mongo/db/update/rename_node.cpp')
-rw-r--r--src/mongo/db/update/rename_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/update/rename_node.cpp b/src/mongo/db/update/rename_node.cpp
index ba9446c5789..c4a7f896e6d 100644
--- a/src/mongo/db/update/rename_node.cpp
+++ b/src/mongo/db/update/rename_node.cpp
@@ -171,7 +171,7 @@ UpdateExecutor::ApplyResult RenameNode::apply(ApplyParams applyParams,
mutablebson::Document& document = applyParams.element.getDocument();
- size_t fromIdxFound;
+ FieldIndex fromIdxFound;
mutablebson::Element fromElement(document.end());
auto status =
pathsupport::findLongestPrefix(*fromFieldRef, document.root(), &fromIdxFound, &fromElement);