LogCabin
|
#include <endian.h>
#include <algorithm>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include "build/Protocol/Raft.pb.h"
#include "Core/Checksum.h"
#include "Core/Debug.h"
#include "Core/ProtoBuf.h"
#include "Core/StringUtil.h"
#include "Core/ThreadId.h"
#include "Core/Time.h"
#include "Core/Util.h"
#include "Storage/FilesystemUtil.h"
#include "Storage/SegmentedLog.h"
#include "Server/Globals.h"
Go to the source code of this file.
Namespaces | |
namespace | LogCabin |
namespace | LogCabin::Storage |
namespace | LogCabin::Storage::anonymous_namespace{SegmentedLog.cc} |
Defines | |
#define | _BSD_SOURCE |
#define | OPEN_SEGMENT_FORMAT |
Format string for open segment filenames. | |
#define | CLOSED_SEGMENT_FORMAT |
Format string for closed segment filenames. | |
Functions | |
bool | LogCabin::Storage::anonymous_namespace{SegmentedLog.cc}::isAllZeros (const void *_start, size_t length) |
Return true if all the bytes in range [start, start + length) are zero. |
#define _BSD_SOURCE |
Definition at line 17 of file SegmentedLog.cc.
#define OPEN_SEGMENT_FORMAT |
Format string for open segment filenames.
First param: incrementing counter.
Definition at line 49 of file SegmentedLog.cc.
#define CLOSED_SEGMENT_FORMAT |
Format string for closed segment filenames.
First param: start index, inclusive. Second param: end index, inclusive.
Definition at line 56 of file SegmentedLog.cc.