Browse Source

Merge pull request #3339 from kmlebedev/issues/3320

pull/3340/head
Chris Lu 3 years ago
committed by GitHub
parent
commit
7b80605538
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      weed/filer/meta_aggregator.go

7
weed/filer/meta_aggregator.go

@ -7,6 +7,7 @@ import (
"github.com/chrislusf/seaweedfs/weed/pb/master_pb"
"github.com/chrislusf/seaweedfs/weed/util"
"io"
"strings"
"sync"
"time"
@ -99,7 +100,11 @@ func (ma *MetaAggregator) loopSubscribeToOneFiler(f *Filer, self pb.ServerAddres
return
}
if err != nil {
glog.V(0).Infof("subscribing remote %s meta change: %v", peer, err)
errLvl := glog.Level(0)
if strings.Contains(err.Error(), "duplicated local subscription detected") {
errLvl = glog.Level(1)
}
glog.V(errLvl).Infof("subscribing remote %s meta change: %v", peer, err)
}
if lastTsNs < nextLastTsNs {
lastTsNs = nextLastTsNs

Loading…
Cancel
Save