diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-02-18 21:57:01 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-02-18 23:11:00 -0500 |
commit | 6718e33f5ecd0de4a8550afaf789c2fc416b6eee (patch) | |
tree | 64385a447c8792b16f6c190dd629afebd1ff0f4b /src/mongo/db/dbhelpers.h | |
parent | 9a9baaaf78677b939b8267d6e9266ec88c345b6b (diff) | |
download | mongo-6718e33f5ecd0de4a8550afaf789c2fc416b6eee.tar.gz |
SERVER:8412: re-write repairDatabase to use new constructs
to make clean, also fix Database::createColection
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r-- | src/mongo/db/dbhelpers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h index ce7b85f3968..a8aebc58c25 100644 --- a/src/mongo/db/dbhelpers.h +++ b/src/mongo/db/dbhelpers.h @@ -65,6 +65,10 @@ namespace mongo { */ static void ensureIndex(const char *ns, BSONObj keyPattern, bool unique, const char *name); + // same as other ensureIndex + static void ensureIndex(Collection* collection, + BSONObj keyPattern, bool unique, const char *name); + /* fetch a single object from collection ns that matches query. set your db SavedContext first. |