Skip to content

Commit

Permalink
fix annotate observer for deletion (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-sun-star authored Aug 2, 2024
1 parent 764f0c9 commit 15a4465
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ func AnnotateOBServersForDeletion(m *OBClusterOperationManager) tasktypes.TaskEr
}
observer.Annotations[oceanbaseconst.AnnotationsDeletionPriority] = strconv.Itoa(oceanbaseconst.DefaultDeletionPriority)
err = m.Client.Update(m.Ctx, &observer)
return errors.Wrapf(err, "Failed to annotate observer %s", observerName)
if err != nil {
return errors.Wrapf(err, "Failed to annotate observer %s", observerName)
}
}
}
}
Expand Down

0 comments on commit 15a4465

Please sign in to comment.