summaryrefslogtreecommitdiff
path: root/src/mongo/db/update/pop_node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/update/pop_node.cpp')
-rw-r--r--src/mongo/db/update/pop_node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/update/pop_node.cpp b/src/mongo/db/update/pop_node.cpp
index 5ec86bdc14d..a5a94ba3005 100644
--- a/src/mongo/db/update/pop_node.cpp
+++ b/src/mongo/db/update/pop_node.cpp
@@ -32,6 +32,7 @@
#include "mongo/db/matcher/expression_parser.h"
#include "mongo/db/update/path_support.h"
+#include "mongo/util/stringutils.h"
namespace mongo {
@@ -82,9 +83,8 @@ void PopNode::apply(mutablebson::Element element,
return;
}
- size_t arrayIndex;
if (element.getType() == BSONType::Array &&
- pathsupport::isNumericPathComponent(pathToCreate->getPart(0), &arrayIndex)) {
+ parseUnsignedBase10Integer(pathToCreate->getPart(0))) {
*noop = true;
return;
}