diff options
Diffstat (limited to 'src/mongo/db/repl/apply_ops.cpp')
-rw-r--r-- | src/mongo/db/repl/apply_ops.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/repl/apply_ops.cpp b/src/mongo/db/repl/apply_ops.cpp index 50d012ab6c8..65b533ba218 100644 --- a/src/mongo/db/repl/apply_ops.cpp +++ b/src/mongo/db/repl/apply_ops.cpp @@ -291,7 +291,8 @@ Status _checkPrecondition(OperationContext* opCtx, // legacy API from 'DBDirectClient' in order to parse this format and convert it into the // corresponding find command. auto preconditionQuery = Query::fromBSONDeprecated(preCondition["q"].Obj()); - auto cursor = db.query(nss, preconditionQuery.getFilter(), preconditionQuery, 1 /*limit*/); + auto cursor = + db.query_DEPRECATED(nss, preconditionQuery.getFilter(), preconditionQuery, 1 /*limit*/); BSONObj realres = cursor->more() ? cursor->nextSafe() : BSONObj{}; // Get collection default collation. |