diff options
Diffstat (limited to 'src/mongo/db/ops/insert.h')
-rw-r--r-- | src/mongo/db/ops/insert.h | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/src/mongo/db/ops/insert.h b/src/mongo/db/ops/insert.h index f55f8e80ea6..e0204c290c7 100644 --- a/src/mongo/db/ops/insert.h +++ b/src/mongo/db/ops/insert.h @@ -33,25 +33,24 @@ namespace mongo { - /** - * if doc is ok, then return is BSONObj() - * otherwise, BSONObj is what should be inserted instead - */ - StatusWith<BSONObj> fixDocumentForInsert( const BSONObj& doc ); - +/** + * if doc is ok, then return is BSONObj() + * otherwise, BSONObj is what should be inserted instead + */ +StatusWith<BSONObj> fixDocumentForInsert(const BSONObj& doc); - /** - * Returns Status::OK() if this namespace is valid for user write operations. If not, returns - * an error Status. - */ - Status userAllowedWriteNS( StringData db, StringData coll ); - Status userAllowedWriteNS( StringData ns ); - Status userAllowedWriteNS( const NamespaceString& ns ); - /** - * Returns Status::OK() if the namespace described by (db, coll) is valid for user create - * operations. If not, returns an error Status. - */ - Status userAllowedCreateNS( StringData db, StringData coll ); +/** + * Returns Status::OK() if this namespace is valid for user write operations. If not, returns + * an error Status. + */ +Status userAllowedWriteNS(StringData db, StringData coll); +Status userAllowedWriteNS(StringData ns); +Status userAllowedWriteNS(const NamespaceString& ns); +/** + * Returns Status::OK() if the namespace described by (db, coll) is valid for user create + * operations. If not, returns an error Status. + */ +Status userAllowedCreateNS(StringData db, StringData coll); } |