summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/update.h
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2012-05-11 15:45:23 -0400
committerAlberto Lerner <alerner@10gen.com>2012-05-11 15:45:23 -0400
commit2b2892fa8b26e00ad398e7da8374b6ab9634c8e3 (patch)
tree853b8b52ca62712f9ea4961713d0b9e19ce32821 /src/mongo/db/ops/update.h
parent88bd3acc4f2fd69720509f69fe097fcf7e568c5a (diff)
downloadmongo-2b2892fa8b26e00ad398e7da8374b6ab9634c8e3.tar.gz
Cleaned trailing blanks and made code faith agnostic.
Diffstat (limited to 'src/mongo/db/ops/update.h')
-rw-r--r--src/mongo/db/ops/update.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/mongo/db/ops/update.h b/src/mongo/db/ops/update.h
index 6a37bba1baa..7740300db4e 100644
--- a/src/mongo/db/ops/update.h
+++ b/src/mongo/db/ops/update.h
@@ -46,27 +46,28 @@ namespace mongo {
/* 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
- god - allow access to system namespaces
+ su - allow access to system namespaces (super user)
*/
- UpdateResult updateObjects(const char *ns,
- const BSONObj& updateobj,
- BSONObj pattern,
- bool upsert,
- bool multi ,
- bool logop ,
- OpDebug& debug,
+ UpdateResult updateObjects(const char *ns,
+ const BSONObj& updateobj,
+ BSONObj pattern,
+ bool upsert,
+ bool multi ,
+ bool logop ,
+ OpDebug& debug,
bool fromMigrate = false,
const QueryPlanSelectionPolicy &planPolicy =
QueryPlanSelectionPolicy::any());
- UpdateResult _updateObjects(bool god,
- const char *ns,
- const BSONObj& updateobj,
+
+ UpdateResult _updateObjects(bool su,
+ const char *ns,
+ const BSONObj& updateobj,
BSONObj pattern,
- bool upsert,
- bool multi ,
- bool logop ,
- OpDebug& debug ,
- RemoveSaver * rs = 0,
+ bool upsert,
+ bool multi ,
+ bool logop ,
+ OpDebug& debug ,
+ RemoveSaver * rs = 0,
bool fromMigrate = false,
const QueryPlanSelectionPolicy &planPolicy =
QueryPlanSelectionPolicy::any());
@@ -549,7 +550,7 @@ namespace mongo {
}
ModStateRange modsForRoot( const string &root );
-
+
void createNewObjFromMods( const string &root, BSONObjBuilder &b, const BSONObj &obj );
void createNewArrayFromMods( const string &root, BSONArrayBuilder &b,
const BSONArray &arr );
@@ -694,5 +695,4 @@ namespace mongo {
friend class ModSet;
};
-}
-
+} // namespace mongo