summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2012-02-09 15:46:14 -0800
committerAaron <aaron@10gen.com>2012-02-12 16:46:50 -0800
commit7def59b99e68b9b3e7d8e3293d7ac35fa37209b1 (patch)
tree9da0d59b82abda45876ee9331538be9efcec4f29 /src/mongo
parent72da0fd4c503b11069f4f76ffd0cd74e26bec2de (diff)
downloadmongo-7def59b99e68b9b3e7d8e3293d7ac35fa37209b1.tar.gz
Clarify oplog behavior of dbhelpers functions
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/dbhelpers.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h
index c2c63d9e8a6..6e42fad7e26 100644
--- a/src/mongo/db/dbhelpers.h
+++ b/src/mongo/db/dbhelpers.h
@@ -109,7 +109,11 @@ namespace mongo {
virtual ~RemoveCallback() {}
virtual void goingToDelete( const BSONObj& o ) = 0;
};
- /* removeRange: operation is oplog'd */
+
+ /**
+ * Remove all documents in the range.
+ * Does oplog the individual document deletions.
+ */
static long long removeRange( const string& ns ,
const BSONObj& min ,
const BSONObj& max ,
@@ -118,9 +122,11 @@ namespace mongo {
RemoveCallback * callback = 0,
bool fromMigrate = false );
- /* Remove all objects from a collection.
- You do not need to set the database before calling.
- */
+ /**
+ * Remove all documents from a collection.
+ * You do not need to set the database before calling.
+ * Does not oplog the operation.
+ */
static void emptyCollection(const char *ns);
};