Merge pull request #5177 from swordqiu/automated-cherry-pick-of-#5173-upstream-release-3.1

Automated cherry pick of #5173: fix: sync cloud provider should change its cloud account's sync_status
This commit is contained in:
Yousong Zhou
2020-02-19 16:02:46 +08:00
committed by GitHub
+1
View File
@@ -536,6 +536,7 @@ func (self *SCloudprovider) StartSyncCloudProviderInfoTask(ctx context.Context,
}
if cloudaccount := self.GetCloudaccount(); cloudaccount != nil {
cloudaccount.markAutoSync(userCred)
cloudaccount.MarkSyncing(userCred)
}
self.markStartSync(userCred)
db.OpsLog.LogEvent(self, db.ACT_SYNC_HOST_START, "", userCred)