diff options
author | Mathias Stearn <mathias@10gen.com> | 2014-07-15 11:45:46 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2014-07-28 11:59:20 -0400 |
commit | ece23f5a892d74360038f4f11f54c11e43f432cd (patch) | |
tree | cd341a4a139001394b355c13c08d723ea9ed7f00 /src/mongo/db/catalog/database.h | |
parent | e3b915cec0233b4fcb5c1cd558cc57790b7b7386 (diff) | |
download | mongo-ece23f5a892d74360038f4f11f54c11e43f432cd.tar.gz |
SERVER-13635 Use StringData and StringMap in DBHolder
Diffstat (limited to 'src/mongo/db/catalog/database.h')
-rw-r--r-- | src/mongo/db/catalog/database.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/database.h b/src/mongo/db/catalog/database.h index c13a12bbdbe..4d8ebf3b128 100644 --- a/src/mongo/db/catalog/database.h +++ b/src/mongo/db/catalog/database.h @@ -30,6 +30,7 @@ #pragma once +#include "mongo/base/string_data.h" #include "mongo/bson/bsonobj.h" #include "mongo/db/catalog/collection_options.h" #include "mongo/db/namespace_string.h" @@ -57,14 +58,14 @@ namespace mongo { public: // you probably need to be in dbHolderMutex when constructing this Database(OperationContext* txn, - const std::string& name, + const StringData& name, DatabaseCatalogEntry* dbEntry ); /* you must use this to close - there is essential code in this method that is not in the ~Database destructor. thus the destructor is private. this could be cleaned up one day... */ static void closeDatabase(OperationContext* txn, - const std::string& db); + const StringData& db); // do not use! ~Database(); // closes files and other cleanup see below. |