fix(dsrepl): increase replication site id bitsize back
In order to minimize chances of site id collision to practically zero.
This commit is contained in:
parent
46d9adb926
commit
0e18bd6e80
|
@ -380,7 +380,7 @@ ensure_site() ->
|
||||||
{ok, [Site]} ->
|
{ok, [Site]} ->
|
||||||
ok;
|
ok;
|
||||||
_ ->
|
_ ->
|
||||||
Site = binary:encode_hex(crypto:strong_rand_bytes(4)),
|
Site = binary:encode_hex(crypto:strong_rand_bytes(8)),
|
||||||
logger:notice("Creating a new site with ID=~s", [Site]),
|
logger:notice("Creating a new site with ID=~s", [Site]),
|
||||||
ok = filelib:ensure_dir(Filename),
|
ok = filelib:ensure_dir(Filename),
|
||||||
{ok, FD} = file:open(Filename, [write]),
|
{ok, FD} = file:open(Filename, [write]),
|
||||||
|
|
Loading…
Reference in New Issue