summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/database.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-05-20 14:40:14 -0400
committerEliot Horowitz <eliot@10gen.com>2014-05-20 19:28:17 -0400
commite06a94e70c25ce97628dddbb551e5669f435922e (patch)
tree6df33b89ef6dff5e88efbc7880ca0e196293cb58 /src/mongo/db/catalog/database.h
parent06bf11f51421f40f8bfe9c9de9b5422673291c28 (diff)
downloadmongo-e06a94e70c25ce97628dddbb551e5669f435922e.tar.gz
SERVER-13635: add DatabaseCatalogEntry as an interface
Diffstat (limited to 'src/mongo/db/catalog/database.h')
-rw-r--r--src/mongo/db/catalog/database.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/database.h b/src/mongo/db/catalog/database.h
index 69a35a41ad0..8fc2488c1f3 100644
--- a/src/mongo/db/catalog/database.h
+++ b/src/mongo/db/catalog/database.h
@@ -40,6 +40,7 @@
namespace mongo {
class Collection;
+ class DatabaseCatalogEntry;
class DataFile;
class ExtentManager;
class IndexCatalog;
@@ -148,14 +149,14 @@ namespace mongo {
int getProfilingLevel() const { return _profile; }
const char* getProfilingNS() const { return _profileName.c_str(); }
- void getCollectionNamespaces( std::list<std::string>* out ) const;
-
void getStats( BSONObjBuilder* output, double scale = 1 );
long long getIndexSizeForCollection( Collection* collections,
BSONObjBuilder* details = NULL,
int scale = 1 );
+ const DatabaseCatalogEntry* getDatabaseCatalogEntry() const;
+
// TODO: do not think this method should exist, so should try and encapsulate better
MmapV1ExtentManager* getExtentManager();
const MmapV1ExtentManager* getExtentManager() const;