A brief file description. More...
#include "libts.h"
#include "I_Layout.h"
#include "P_HostDB.h"
#include "P_MultiCache.h"
#include "P_EventSystem.h"
#include "ink_file.h"
Go to the source code of this file.
Data Structures | |
struct | MultiCacheSync |
struct | OffsetTable |
struct | MultiCacheHeapGC |
Typedefs | |
typedef int(MultiCacheSync::* | MCacheSyncHandler )(int, void *) |
typedef int(MultiCacheHeapGC::* | MCacheHeapGCHandler )(int, void *) |
Functions | |
int | store_verify (Store *store) |
static int | bytes_to_blocks (int64_t b) |
void | stealStore (Store &s, int blocks) |
Variables | |
static const int | MC_SYNC_MIN_PAUSE_TIME = HRTIME_MSECONDS(200) |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file MultiCache.cc.
typedef int(MultiCacheHeapGC::* MCacheHeapGCHandler)(int, void *) |
Definition at line 1121 of file MultiCache.cc.
typedef int(MultiCacheSync::* MCacheSyncHandler)(int, void *) |
Definition at line 999 of file MultiCache.cc.
static int bytes_to_blocks | ( | int64_t | b | ) | [inline, static] |
Definition at line 79 of file MultiCache.cc.
References STORE_BLOCK_SIZE.
Referenced by MultiCacheBase::blocks_in_level(), MultiCacheBase::initialize(), and MultiCacheBase::mmap_data().
void stealStore | ( | Store & | s, | |
int | blocks | |||
) |
Definition at line 1393 of file MultiCache.cc.
References Span::blocks, Store::delete_all(), Store::disk, Span::file_pathname, Store::n_disks, Span::offset, MultiCacheBase::read_config(), Store::read_config(), and Store::try_realloc().
Referenced by MultiCacheBase::open().
int store_verify | ( | Store * | store | ) | [inline] |
Definition at line 51 of file MultiCache.cc.
References Store::disk, and Store::n_disks.
Referenced by MultiCacheBase::open(), and MultiCacheBase::rebuild().
const int MC_SYNC_MIN_PAUSE_TIME = HRTIME_MSECONDS(200) [static] |
Definition at line 38 of file MultiCache.cc.
Referenced by MultiCacheSync::mcEvent(), and MultiCacheHeapGC::startEvent().