summaryrefslogtreecommitdiff
path: root/db/query.h
diff options
context:
space:
mode:
Diffstat (limited to 'db/query.h')
-rw-r--r--db/query.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/db/query.h b/db/query.h
index 29f13783369..246f7881829 100644
--- a/db/query.h
+++ b/db/query.h
@@ -71,11 +71,13 @@
namespace mongo {
-// for an existing query (ie a ClientCursor), send back additional information.
+ // for an existing query (ie a ClientCursor), send back additional information.
QueryResult* getMore(const char *ns, int ntoreturn, long long cursorid);
- // returns true if an existing object was updated, false if no existing object was found.
- bool updateObjects(const char *ns, BSONObj updateobj, BSONObj pattern, bool upsert, stringstream& ss);
+ /* returns true if an existing object was updated, false if no existing object was found.
+ multi - update multiple objects - mostly useful with things like $set
+ */
+ bool updateObjects(const char *ns, BSONObj updateobj, BSONObj pattern, bool upsert, stringstream& ss, bool multi = false);
// If justOne is true, deletedId is set to the id of the deleted object.
int deleteObjects(const char *ns, BSONObj pattern, bool justOne, bool logop = false, bool god=false);