adjusting refresh topology writable volumes(not finished yet)

Need to refreshWritableVolumes for each replication type
This commit is contained in:
Chris Lu committed 2012-09-17 01:48:09 -07:00
1 parent 6671f576cb
commit b0e250d437
8 files changed
+44 -23

No files matched your search

+1 -1
View File
@@ -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 {