[sync] override amz storage class, None to delete (#3639)

* override amz storage class, None to delete
https://github.com/seaweedfs/seaweedfs/issues/3636

* use empty string to delete

* without nil check
This commit is contained in:
Konstantin Lebedev
2022-09-11 02:15:42 +05:00
committed by GitHub
parent 3cb914f7e1
commit b64674018a
3 changed files with 9 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ func (t *MetadataProcessor) AddSyncJob(resp *filer_pb.SubscribeMetadataResponse)
// if is the oldest job, write down the watermark
isOldest := true
for t, _ := range t.activeJobs {
for t := range t.activeJobs {
if resp.TsNs > t {
isOldest = false
break