Skip to content

Commit 455bc44

Browse files
committed
Only check shard sync status for cluster deployments.
This fixes a test and is benficial otherwise, too.
1 parent 0c707c5 commit 455bc44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/deployment/resources/deployment_health.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,9 @@ dbloop:
180180
func (r *Resources) GetShardSyncStatus() bool {
181181
r.shardSync.mutex.Lock()
182182
defer r.shardSync.mutex.Unlock()
183+
if r.context.GetSpec().GetMode() != api.DeploymentModeCluster {
184+
// Shard sync status is only applicable for clusters
185+
return true
186+
}
183187
return r.shardSync.allInSync
184188
}

0 commit comments

Comments
 (0)