chore: update has_deprecated_file doc

Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
This commit is contained in:
zhongwencool 2023-04-14 22:30:11 +08:00 committed by GitHub
parent c0e6e79bcd
commit bcce989906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -514,6 +514,8 @@ read_override_conf(#{} = Opts) ->
end, end,
load_hocon_file(File, map). load_hocon_file(File, map).
%% @doc Return `true' if this node is upgraded from older version which used cluster-override.conf for
%% cluster-wide config persistence.
has_deprecated_file() -> has_deprecated_file() ->
DeprecatedFile = deprecated_conf_file(#{override_to => cluster}), DeprecatedFile = deprecated_conf_file(#{override_to => cluster}),
filelib:is_regular(DeprecatedFile). filelib:is_regular(DeprecatedFile).