![]() |
Storage Engine API
|
#include "mongo/platform/basic.h"
#include "mongo/db/storage/storage_engine_init.h"
#include <map>
#include "mongo/bson/bsonobjbuilder.h"
#include "mongo/db/storage/storage_engine_lock_file.h"
#include "mongo/db/storage/storage_engine_metadata.h"
#include "mongo/db/storage/storage_options.h"
#include "mongo/db/unclean_shutdown.h"
#include "mongo/util/assert_util.h"
#include "mongo/util/log.h"
#include "mongo/util/mongoutils/str.h"
Namespaces | |
mongo | |
Copyright (C) 2014 MongoDB Inc. | |
Macros | |
#define | MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kStorage |
Copyright (C) 2018 MongoDB Inc. More... | |
Functions | |
void | mongo::initializeStorageEngine (ServiceContext *service) |
Initializes the storage engine on "service". More... | |
void | mongo::shutdownGlobalStorageEngineCleanly (ServiceContext *service) |
Shuts down storage engine cleanly and releases any locks on mongod.lock. More... | |
void | mongo::createLockFile (ServiceContext *service) |
Creates the lock file used to prevent concurrent processes from accessing the data files, as appropriate. More... | |
void | mongo::registerStorageEngine (ServiceContext *service, std::unique_ptr< StorageEngine::Factory > factory) |
Registers a storage engine onto the given "service". More... | |
bool | mongo::isRegisteredStorageEngine (ServiceContext *service, StringData name) |
Returns true if "name" refers to a registered storage engine. More... | |
StorageEngine::Factory * | mongo::getFactoryForStorageEngine (ServiceContext *context, StringData name) |
Returns an unowned pointer to the factory for the named storage engine, or nullptr. More... | |
Status | mongo::validateStorageOptions (ServiceContext *service, const BSONObj &storageEngineOptions, stdx::function< Status(const StorageEngine::Factory *const, const BSONObj &)> validateFunc) |
void | mongo::appendStorageEngineList (ServiceContext *service, BSONObjBuilder *result) |
Variables | |
bool | mongo::_supportsDocLocking |
A RAII object that temporarily forces setting of the _supportsDocLocking global variable (defined in db/service_context.cpp and returned by mongo::supportsDocLocking()) for testing purposes. More... | |
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kStorage |
Copyright (C) 2018 MongoDB Inc.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
As a special exception, the copyright holders give permission to link the code of portions of this program with the OpenSSL library under certain conditions as described in each individual source file and distribute linked combinations including the program with the OpenSSL library. You must comply with the GNU Affero General Public License in all respects for all of the code used other than as permitted herein. If you modify file(s) with this exception, you may extend this exception to your version of the file(s), but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. If you delete this exception statement from all source files in the program, then also delete it in the license file.