mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-19 10:54:08 +01:00
adjusting refresh topology writable volumes(not finished yet)
Need to refreshWritableVolumes for each replication type
This commit is contained in:
1 parent
6671f576cb
commit
b0e250d437
8 files changed
+44
-23
No files matched your search
@@ -120,7 +120,7 @@ func (m *Mapper) StartRefreshWritableVolumes() {
|
||||
}
|
||||
|
||||
func (m *Mapper) refreshWritableVolumes() {
|
||||
freshThreshHold := time.Now().Unix() - 5*m.pulse //5 times of sleep interval
|
||||
freshThreshHold := time.Now().Unix() - 3*m.pulse //3 times of sleep interval
|
||||
//setting Writers, copy-on-write because of possible updating, this needs some future work!
|
||||
var writers []storage.VolumeId
|
||||
for _, machine_entry := range m.Machines {
|
||||
|
||||
Reference in new issue
Block a user