diff options
Diffstat (limited to 'src/mongo/db/repl/apply_ops_command_info.cpp')
-rw-r--r-- | src/mongo/db/repl/apply_ops_command_info.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/apply_ops_command_info.cpp b/src/mongo/db/repl/apply_ops_command_info.cpp index 57144240cdb..97b9e90976e 100644 --- a/src/mongo/db/repl/apply_ops_command_info.cpp +++ b/src/mongo/db/repl/apply_ops_command_info.cpp @@ -47,7 +47,7 @@ namespace { */ bool _parseAreOpsCrudOnly(const BSONObj& applyOpCmd) { for (const auto& elem : applyOpCmd.firstElement().Obj()) { - const char* opType = elem.Obj().getField("op").valuestrsafe(); + const char* opType = elem.Obj().getStringField("op").rawData(); // All atomic ops have an opType of length 1. if (opType[0] == '\0' || opType[1] != '\0') |