Skip to content

Commit

Permalink
chore: apply suggestions from CR
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Dec 14, 2023
1 parent 1ea29ed commit e49d122
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/datanode/src/datanode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,16 @@ impl DatanodeBuilder {

// Opens regions in background.
common_runtime::spawn_bg(async move {
open_all_regions(
if let Err(err) = open_all_regions(
&region_server_moved,
kv_backend,
!controlled_by_metasrv,
node_id,
)
.await
{
error!(err; "Failed to opening regions");
}
});

let heartbeat_task = if let Some(meta_client) = meta_client {
Expand Down

0 comments on commit e49d122

Please sign in to comment.