diff options
author | Benety Goh <benety@mongodb.com> | 2014-06-27 10:15:15 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-07-01 15:32:29 -0400 |
commit | f8c98bee1208e04259814e0818f405081132d42c (patch) | |
tree | 6859a21e564d965ae839975284122128179e5808 /src/mongo/db/catalog | |
parent | 44c3347251e39b1a04717e02cec4a7ff626baf4e (diff) | |
download | mongo-f8c98bee1208e04259814e0818f405081132d42c.tar.gz |
SERVER-5092 assign default log component to server modules
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r-- | src/mongo/db/catalog/collection_info_cache.cpp | 5 | ||||
-rw-r--r-- | src/mongo/db/catalog/database.cpp | 5 | ||||
-rw-r--r-- | src/mongo/db/catalog/database_holder.cpp | 5 | ||||
-rw-r--r-- | src/mongo/db/catalog/index_catalog.cpp | 4 | ||||
-rw-r--r-- | src/mongo/db/catalog/index_catalog_entry.cpp | 6 | ||||
-rw-r--r-- | src/mongo/db/catalog/index_create.cpp | 5 |
6 files changed, 28 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/collection_info_cache.cpp b/src/mongo/db/catalog/collection_info_cache.cpp index bac3cb9a4e1..85122d0d926 100644 --- a/src/mongo/db/catalog/collection_info_cache.cpp +++ b/src/mongo/db/catalog/collection_info_cache.cpp @@ -28,6 +28,8 @@ * it in the license file. */ +#include "mongo/platform/basic.h" + #include "mongo/db/catalog/collection_info_cache.h" #include "mongo/db/d_concurrency.h" @@ -35,10 +37,13 @@ #include "mongo/db/catalog/collection.h" #include "mongo/db/index/index_descriptor.h" #include "mongo/util/debug_util.h" +#include "mongo/util/log.h" namespace mongo { + MONGO_LOG_DEFAULT_COMPONENT_FILE(::mongo::logger::LogComponent::kStorage); + CollectionInfoCache::CollectionInfoCache( Collection* collection ) : _collection( collection ), _keysComputed( false ), diff --git a/src/mongo/db/catalog/database.cpp b/src/mongo/db/catalog/database.cpp index d1fbc8c8bd9..cbfd70a1502 100644 --- a/src/mongo/db/catalog/database.cpp +++ b/src/mongo/db/catalog/database.cpp @@ -28,7 +28,7 @@ * it in the license file. */ -#include "mongo/pch.h" +#include "mongo/platform/basic.h" #include "mongo/db/catalog/database.h" @@ -53,9 +53,12 @@ #include "mongo/db/storage_options.h" #include "mongo/db/storage/storage_engine.h" #include "mongo/db/catalog/collection.h" +#include "mongo/util/log.h" namespace mongo { + MONGO_LOG_DEFAULT_COMPONENT_FILE(::mongo::logger::LogComponent::kStorage); + void massertNamespaceNotIndex( const StringData& ns, const StringData& caller ) { massert( 17320, str::stream() << "cannot do " << caller diff --git a/src/mongo/db/catalog/database_holder.cpp b/src/mongo/db/catalog/database_holder.cpp index 438be2fd6aa..71a62522c53 100644 --- a/src/mongo/db/catalog/database_holder.cpp +++ b/src/mongo/db/catalog/database_holder.cpp @@ -28,7 +28,7 @@ * it in the license file. */ -#include "mongo/pch.h" +#include "mongo/platform/basic.h" #include "mongo/db/auth/auth_index_d.h" #include "mongo/db/background.h" @@ -41,9 +41,12 @@ #include "mongo/db/storage/mmap_v1/dur.h" #include "mongo/db/storage/storage_engine.h" #include "mongo/util/file_allocator.h" +#include "mongo/util/log.h" namespace mongo { + MONGO_LOG_DEFAULT_COMPONENT_FILE(::mongo::logger::LogComponent::kStorage); + static DatabaseHolder _dbHolder; DatabaseHolder& dbHolder() { diff --git a/src/mongo/db/catalog/index_catalog.cpp b/src/mongo/db/catalog/index_catalog.cpp index 8d70c6b123c..293e80247d2 100644 --- a/src/mongo/db/catalog/index_catalog.cpp +++ b/src/mongo/db/catalog/index_catalog.cpp @@ -28,6 +28,8 @@ * it in the license file. */ +#include "mongo/platform/basic.h" + #include "mongo/db/catalog/index_catalog.h" #include <vector> @@ -60,6 +62,8 @@ namespace mongo { + MONGO_LOG_DEFAULT_COMPONENT_FILE(::mongo::logger::LogComponent::kIndexing); + static const int INDEX_CATALOG_INIT = 283711; static const int INDEX_CATALOG_UNINIT = 654321; diff --git a/src/mongo/db/catalog/index_catalog_entry.cpp b/src/mongo/db/catalog/index_catalog_entry.cpp index 9764eebdf21..f60fb38dfd5 100644 --- a/src/mongo/db/catalog/index_catalog_entry.cpp +++ b/src/mongo/db/catalog/index_catalog_entry.cpp @@ -28,6 +28,8 @@ * it in the license file. */ +#include "mongo/platform/basic.h" + #include "mongo/db/catalog/index_catalog_entry.h" #include "mongo/db/catalog/collection_catalog_entry.h" @@ -35,9 +37,13 @@ #include "mongo/db/index/index_descriptor.h" #include "mongo/db/operation_context.h" #include "mongo/db/structure/head_manager.h" +#include "mongo/util/file_allocator.h" +#include "mongo/util/log.h" namespace mongo { + MONGO_LOG_DEFAULT_COMPONENT_FILE(::mongo::logger::LogComponent::kIndexing); + class HeadManagerImpl : public HeadManager { public: HeadManagerImpl(IndexCatalogEntry* ice) : _catalogEntry(ice) { } diff --git a/src/mongo/db/catalog/index_create.cpp b/src/mongo/db/catalog/index_create.cpp index d3255c826c6..176939669c4 100644 --- a/src/mongo/db/catalog/index_create.cpp +++ b/src/mongo/db/catalog/index_create.cpp @@ -28,6 +28,8 @@ * it in the license file. */ +#include "mongo/platform/basic.h" + #include "mongo/db/catalog/index_create.h" #include "mongo/base/error_codes.h" @@ -43,11 +45,14 @@ #include "mongo/db/repl/repl_coordinator_global.h" #include "mongo/db/repl/rs.h" #include "mongo/db/operation_context.h" +#include "mongo/util/log.h" #include "mongo/util/processinfo.h" #include "mongo/util/progress_meter.h" namespace mongo { + MONGO_LOG_DEFAULT_COMPONENT_FILE(::mongo::logger::LogComponent::kIndexing); + /** * Add the provided (obj, dl) pair to the provided index. */ |