Storage Engine API
dur_preplogbuffer.cpp File Reference
#include "mongo/platform/basic.h"
#include "mongo/db/storage/mmap_v1/aligned_builder.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_journalimpl.h"
#include "mongo/db/storage/mmap_v1/dur_stats.h"
#include "mongo/db/storage/mmap_v1/durable_mapped_file.h"
#include "mongo/db/storage/storage_options.h"
#include "mongo/stdx/thread.h"
#include "mongo/util/clock_source.h"
#include "mongo/util/log.h"
#include "mongo/util/mongoutils/str.h"
#include "mongo/util/stacktrace.h"
#include "mongo/util/timer.h"

Namespaces

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

Macros

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

Functions

static DurableMappedFile * mongo::dur::findMMF_inlock (void *ptr, size_t &ofs)
 
static void mongo::dur::prepBasicWrite_inlock (AlignedBuilder &bb, const WriteIntent *i, RelativePath &lastDbPath)
 put the basic write operation into the buffer (bb) to be journaled More...
 
static void mongo::dur::prepBasicWrites (AlignedBuilder &bb, const std::vector< WriteIntent > &intents)
 basic write ops / write intents. More...
 
static void mongo::dur::_PREPLOGBUFFER (JSectHeader &h, AlignedBuilder &bb, ClockSource *cs, int64_t serverStartMs)
 we will build an output buffer ourself and then use O_DIRECT we could be in read lock for this caller handles locking More...
 
void mongo::dur::PREPLOGBUFFER (JSectHeader &outHeader, AlignedBuilder &outBuffer, ClockSource *cs, int64_t serverStartMs)
 

Variables

const RelativePath mongo::dur::local = RelativePath::fromRelativePath("local")
 

Macro Definition Documentation

◆ MONGO_LOG_DEFAULT_COMPONENT

#define MONGO_LOG_DEFAULT_COMPONENT   ::mongo::logger::LogComponent::kStorage

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.