Storage Engine API
touch_pages.h
Go to the documentation of this file.
1
/* Copyright 2009 10gen Inc.
2
*
3
* This program is free software: you can redistribute it and/or modify
4
* it under the terms of the GNU Affero General Public License, version 3,
5
* as published by the Free Software Foundation.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU Affero General Public License for more details.
11
*
12
* You should have received a copy of the GNU Affero General Public License
13
* along with this program. If not, see <http://www.gnu.org/licenses/>.
14
*
15
* As a special exception, the copyright holders give permission to link the
16
* code of portions of this program with the OpenSSL library under certain
17
* conditions as described in each individual source file and distribute
18
* linked combinations including the program with the OpenSSL library. You
19
* must comply with the GNU Affero General Public License in all respects
20
* for all of the code used other than as permitted herein. If you modify
21
* file(s) with this exception, you may extend this exception to your
22
* version of the file(s), but you are not obligated to do so. If you do not
23
* wish to do so, delete this exception statement from your version. If you
24
* delete this exception statement from all source files in the program,
25
* then also delete it in the license file.
26
*/
27
28
#pragma once
29
30
#include <cstdlib>
31
32
namespace
mongo
{
33
37
void
touch_pages
(
const
char
* buf,
size_t
length
,
size_t
pageSize = 4096);
38
}
length
size_t length
Definition:
record_store_v1_base.cpp:852
mongo
Copyright (C) 2014 MongoDB Inc.
Definition:
bson_collection_catalog_entry.cpp:38
mongo::touch_pages
void touch_pages(const char *buf, size_t length, size_t pageSize)
Touches a range of pages, to encourage the OS to get them into the buffer pool.
Definition:
touch_pages.cpp:36
src
mongo
db
storage
mmap_v1
touch_pages.h
Generated by
1.8.13