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:
Andrew Mayorov 2024-03-19 15:07:11 +01:00
parent 46d9adb926
commit 0e18bd6e80
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 1 additions and 1 deletions

View File

@ -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]),