33 const double ZNAN = std::numeric_limits<double>::quiet_NaN();
34 const double ZINF = std::numeric_limits<double>::infinity();
37 static double f() {
return Global::ZNAN; }
42 const size_t CHUNKSZ = 131072;
44 const size_t MAGICNB = 0x9316481736403219L;
46 const size_t EPOLL_MAX_EVENTS = 64;
48 using dtime = std::chrono::system_clock::time_point;
49 using duration = dtime::duration;
57 const size_t STRALIGN = 8;
61 enum class MsgType : uint64_t {
72 using conn_id_t = uint64_t;
75 using reqid_t = uint64_t;
78 const char*
const ZTSDBDIR_ENV =
"ZTSDBDIR";
79 const char*
const CONFIG_FILENAME =
"ztsdb.conf";
80 const char*
const LOGFILE_EXTENSION =
".log";
82 using buflen_pair = std::pair<std::unique_ptr<char[]>,
size_t>;