Storage Engine API
dur.cpp File Reference
#include "mongo/platform/basic.h"
#include "mongo/db/storage/mmap_v1/dur.h"
#include <iomanip>
#include <utility>
#include "mongo/base/static_assert.h"
#include "mongo/db/client.h"
#include "mongo/db/commands/server_status.h"
#include "mongo/db/concurrency/lock_state.h"
#include "mongo/db/operation_context.h"
#include "mongo/db/storage/mmap_v1/aligned_builder.h"
#include "mongo/db/storage/mmap_v1/commit_notifier.h"
#include "mongo/db/storage/mmap_v1/dur_commitjob.h"
#include "mongo/db/storage/mmap_v1/dur_journal.h"
#include "mongo/db/storage/mmap_v1/dur_journal_writer.h"
#include "mongo/db/storage/mmap_v1/dur_recover.h"
#include "mongo/db/storage/mmap_v1/dur_stats.h"
#include "mongo/db/storage/mmap_v1/durable_mapped_file.h"
#include "mongo/db/storage/mmap_v1/mmap_v1_options.h"
#include "mongo/db/storage/storage_options.h"
#include "mongo/stdx/condition_variable.h"
#include "mongo/stdx/mutex.h"
#include "mongo/stdx/thread.h"
#include "mongo/util/clock_source.h"
#include "mongo/util/exit.h"
#include "mongo/util/log.h"
#include "mongo/util/timer.h"

Namespaces

 mongo
 Copyright (C) 2014 MongoDB Inc.
 
 mongo::dur
 

Macros

#define MONGO_LOG_DEFAULT_COMPONENT   ::mongo::logger::LogComponent::kJournal
 Copyright (C) 2009-2014 MongoDB Inc. More...
 

Enumerations

enum  
 
enum  
 

Functions

void mongo::dur::PREPLOGBUFFER (JSectHeader &outHeader, AlignedBuilder &outBuffer, ClockSource *cs, int64_t serverStartMs)
 
boost::filesystem::path mongo::dur::getJournalDir ()
 
void mongo::dur::preallocateFiles ()
 
static void mongo::dur::durThread (ClockSource *cs, int64_t serverStartMs)
 The main durability thread loop. More...
 
static void mongo::dur::remapPrivateView (OperationContext *opCtx, double fraction)
 Remaps the private view from the shared view so that it does not consume too much copy-on-write/swap space. More...
 
void mongo::dur::startup (ClockSource *cs, int64_t serverStartMs)
 Invoked at server startup. More...
 
void mongo::dur::setJournalListener (JournalListener *jl)
 
JournalListener * mongo::dur::getJournalListener ()
 

Variables

Stats mongo::dur::stats
 
CommitJob mongo::dur::commitJob
 
DurableInterface *DurableInterface::_impl & mongo::dur::nonDurableImpl
 

Macro Definition Documentation

◆ MONGO_LOG_DEFAULT_COMPONENT

#define MONGO_LOG_DEFAULT_COMPONENT   ::mongo::logger::LogComponent::kJournal

Copyright (C) 2009-2014 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.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

◆ anonymous enum

anonymous enum

Variable Documentation

◆ _durThreadHandle

stdx::thread _durThreadHandle
private