Skip to content

Commit fd59dde

Browse files
committed
fix
1 parent db046f3 commit fd59dde

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

controller/node_controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,6 +1391,10 @@ func (nc *NodeController) getNewAndMissingOrphanedReplicaDataStores(diskName, di
13911391
if reused {
13921392
nc.logger.Infof("Orphan %v is reused by replica. Marking DeleteCustomResourceOnly.", orphan.Name)
13931393
orphan.Labels[types.DeleteCustomResourceOnly] = string(longhorn.ConditionStatusTrue)
1394+
if _, err := nc.ds.UpdateOrphan(orphan); err != nil {
1395+
nc.logger.WithError(err).Warnf("Failed to update orphan %v after setting DeleteCustomResourceOnly label", orphan.Name)
1396+
}
1397+
13941398
}
13951399
nc.logger.Infof("Adding Orphan %v to missingOrphan", orphan.Name)
13961400
missingOrphanedReplicaDataStores[dataStore] = ""

0 commit comments

Comments
 (0)