Change default DB ID

An undefined database id will use 65536 not 0 (as 0 is commonly used when defining database ids in Riak)
This commit is contained in:
Martin Sumner 2019-06-14 11:19:37 +01:00
parent 876a023db1
commit b5859ddde9

View file

@ -115,6 +115,7 @@
-define(COMPRESSION_POINT, on_receipt). -define(COMPRESSION_POINT, on_receipt).
-define(LOG_LEVEL, info). -define(LOG_LEVEL, info).
-define(TIMING_SAMPLESIZE, 100). -define(TIMING_SAMPLESIZE, 100).
-define(DEFAULT_DBID, 65536).
-define(TIMING_SAMPLECOUNTDOWN, 50000). -define(TIMING_SAMPLECOUNTDOWN, 50000).
-define(DUMMY, dummy). % Dummy key used for mput operations -define(DUMMY, dummy). % Dummy key used for mput operations
-define(MAX_KEYCHECK_FREQUENCY, 100). -define(MAX_KEYCHECK_FREQUENCY, 100).
@ -140,7 +141,7 @@
{compression_point, ?COMPRESSION_POINT}, {compression_point, ?COMPRESSION_POINT},
{log_level, ?LOG_LEVEL}, {log_level, ?LOG_LEVEL},
{forced_logs, []}, {forced_logs, []},
{database_id, 0}, {database_id, ?DEFAULT_DBID},
{override_functions, []}, {override_functions, []},
{snapshot_timeout_short, ?SNAPTIMEOUT_SHORT}, {snapshot_timeout_short, ?SNAPTIMEOUT_SHORT},
{snapshot_timeout_long, ?SNAPTIMEOUT_LONG}]). {snapshot_timeout_long, ?SNAPTIMEOUT_LONG}]).