cloudflare/SortaSQL
Publicmirrored fromhttps://github.com/cloudflare/SortaSQL
common.h
19lines · modecode
15 years ago
| 1 | #ifndef CF_COMMON_KCPG |
| 2 | #define CF_COMMON_KCPG |
| 3 | |
| 4 | #include <sys/types.h> |
| 5 | |
| 6 | static const char *BASE_DB_DIR = "/mnt/ssd/pg/kyoto"; |
| 7 | static const char *DB_TYPE = "kct"; |
| 8 | static const mode_t NEW_DIR_MODE = 0777; |
| 9 | static const mode_t NEW_DIR_MASK = 0777; |
| 10 | static const mode_t FILE_MODE = 0666; |
| 11 | static const char *CF_LABEL_SEP = ":"; |
| 12 | static 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. |
| 14 | static const int KC_MAX_ENTRIES_PER_RID = 64; |
| 15 | |
| 16 | // Where to stick kv dbs. |
| 17 | static const char *CF_KV_MAP_BASE = "/mnt/ssd_new/pg/kyoto_kvs"; |
| 18 | |
| 19 | #endif |