diff --git a/compute_tools/src/compute.rs b/compute_tools/src/compute.rs index b33f4f05dd..fb4c6ee5f7 100644 --- a/compute_tools/src/compute.rs +++ b/compute_tools/src/compute.rs @@ -372,9 +372,13 @@ impl ComputeNode { let lsn = match spec.mode { ComputeMode::Primary => { info!("starting safekeepers syncing"); - let lsn = self + let lsn = if let Some(lsn) = self.check_safekeepers_synced() { + lsn + } else { + self .sync_safekeepers(pspec.storage_auth_token.clone()) .with_context(|| "failed to sync safekeepers")?; + }; info!("safekeepers synced at LSN {}", lsn); lsn }