chore(dsraft): sprinkle shard bootstrap process with tracepoints
This commit is contained in:
parent
26ddc403c8
commit
42e4a635e0
|
@ -363,9 +363,11 @@ init({DB, Shard, Opts}) ->
|
||||||
|
|
||||||
handle_continue(bootstrap, St = #st{bootstrapped = true}) ->
|
handle_continue(bootstrap, St = #st{bootstrapped = true}) ->
|
||||||
{noreply, St};
|
{noreply, St};
|
||||||
handle_continue(bootstrap, St0) ->
|
handle_continue(bootstrap, St0 = #st{db = DB, shard = Shard, stage = Stage}) ->
|
||||||
|
?tp(emqx_ds_replshard_bootstrapping, #{db => DB, shard => Shard, stage => Stage}),
|
||||||
case bootstrap(St0) of
|
case bootstrap(St0) of
|
||||||
St = #st{bootstrapped = true} ->
|
St = #st{bootstrapped = true} ->
|
||||||
|
?tp(emqx_ds_replshard_bootstrapped, #{db => DB, shard => Shard}),
|
||||||
{noreply, St};
|
{noreply, St};
|
||||||
St = #st{bootstrapped = false} ->
|
St = #st{bootstrapped = false} ->
|
||||||
{noreply, St, {continue, bootstrap}};
|
{noreply, St, {continue, bootstrap}};
|
||||||
|
|
Loading…
Reference in New Issue