YottaDB / YDB

Mirrored from https://gitlab.com/YottaDB/DB/YDB
Other
76 stars 37 forks source link

ydb_env_set and ydb_env_unset set & unset ydb_statsdir #245

Open ksbhaskar opened 6 years ago

ksbhaskar commented 6 years ago

Final Release Note

Description

The ideal location for statistics sharing databases is a memory based filesystem. The default of /tmp is memory based on some Linux distributions, but not on most. /dev/shm is always a memory based filesystem.

Draft Release Note

If neither the environment variable ydb_statsdir, nor its predecessor, gtm_statsdir, is set, the environment variable initialization of ydb_env_set sets both to /dev/shm. In the event either or both are set, ydb_env_set ensures both have the same value, with $ydb_statsdir, if any, taking precedence over $gtm_statsdir. ydb_env_unset unsets the value of both.