Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

Commit c69d432

Browse files
author
jeremy
committed
DEV-41947: Improve the initsync logic to prevent lost data after k8s device is updated
1 parent 06bdd15 commit c69d432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/device/device.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (m *Manager) checkAndUpdateExistDevice(device *lm.RestDevice) (*lm.RestDevi
6161

6262
// the device which is not changed will be ignored
6363
if device.Name == oldDevice.Name {
64-
log.Infof("the device (%s) does not change, ignore the updating", device.DisplayName)
64+
log.Infof("No changes to device (%s). Ignoring update", device.DisplayName)
6565
return device, nil
6666
}
6767

@@ -75,7 +75,7 @@ func (m *Manager) checkAndUpdateExistDevice(device *lm.RestDevice) (*lm.RestDevi
7575
}
7676
}
7777
if oldClusterName != m.Config().ClusterName {
78-
log.Infof("the device (%s) belongs to the other cluster %s, ignore the updating", device.DisplayName, oldClusterName)
78+
log.Infof("Device (%s) belongs to a different cluster (%s). Ignoring update", device.DisplayName, oldClusterName)
7979
return device, nil
8080
}
8181

0 commit comments

Comments
 (0)