CodeCommitsIssuesPull requestsActionsInsightsSecurity
master

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS
SSH

Download ZIP

common.h

19lines · modecode

1#ifndef CF_COMMON_KCPG
2#define CF_COMMON_KCPG
3
4#include <sys/types.h>
5
6static const char *BASE_DB_DIR = "/mnt/ssd/pg/kyoto";
7static const char *DB_TYPE = "kct";
8static const mode_t NEW_DIR_MODE = 0777;
9static const mode_t NEW_DIR_MASK = 0777;
10static const mode_t FILE_MODE = 0666;
11static const char *CF_LABEL_SEP = ":";
12static const int MAX_KEYS_BEFORE_KV_MAP = 512; // How many keys to keep as a counter, before placing them in KC.
13//static const int MAX_KEYS_BEFORE_KV_MAP = 1; // How many keys to keep as a counter, before placing them in KC.
14static const int KC_MAX_ENTRIES_PER_RID = 64;
15
16// Where to stick kv dbs.
17static const char *CF_KV_MAP_BASE = "/mnt/ssd_new/pg/kyoto_kvs";
18
19#endif