|
|
@@ -29,8 +29,15 @@ start_link() ->
|
|
|
%% behaviour callbacks
|
|
|
%%================================================================================
|
|
|
|
|
|
+-dialyzer({nowarn_function, init/1}).
|
|
|
init([]) ->
|
|
|
- Children = [meta(), storage_layer_sup()],
|
|
|
+ %% TODO: technically, we don't need rocksDB for the alternative
|
|
|
+ %% backends. But right now we have any:
|
|
|
+ Children =
|
|
|
+ case mria:rocksdb_backend_available() of
|
|
|
+ true -> [meta(), storage_layer_sup()];
|
|
|
+ false -> []
|
|
|
+ end,
|
|
|
SupFlags = #{
|
|
|
strategy => one_for_all,
|
|
|
intensity => 0,
|