#include <derecho/persistent/detail/FilePersistLog.hpp>
#include <derecho/persistent/detail/util.hpp>
#include <derecho/conf/conf.hpp>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <iostream>
#include <string.h>
#include <string>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include <experimental/filesystem>
Go to the source code of this file.
|
| persistent |
| This file include all common types internal to derecho and not necessarily being known by a client program.
|
|
◆ __DO_VALIDATION
Value:do { \
dbg_default_error("{0}-append exception no free slots in log! NUM_FREE_SLOTS={1}", \
dbg_default_flush(); \
FPL_UNLOCK; \
std::cerr <<
"PERSIST_EXP_NOSPACE_LOG: FREESLOT=" <<
NUM_FREE_SLOTS <<
",version=" << ver << std::endl; \
} \
dbg_default_error("{0}-append exception no space for data: NUM_FREE_BYTES={1}, size={2}", \
dbg_default_flush(); \
FPL_UNLOCK; \
std::cerr <<
"PERSIST_EXP_NOSPACE_DATA: FREE:" <<
NUM_FREE_BYTES <<
",size=" << size << std::endl; \
} \
dbg_default_error("{0}-append version already exists! cur_ver:{1} new_ver:{2}", this->m_sName, \
(int64_t)cver, (int64_t)ver); \
dbg_default_flush(); \
FPL_UNLOCK; \
std::cerr << "PERSIST_EXP_INV_VERSION:cver=" << cver << ",ver=" << ver << std::endl; \
} \
} while(0)
#define PERSIST_EXP_NOSPACE_LOG
#define PERSIST_EXP_NOSPACE_DATA
#define PERSIST_EXP_INV_VERSION