Browse Source

Merge pull request #461 from sparklxb/master

fix bug: replication, metadata not replicated
pull/463/head
Chris Lu 8 years ago
committed by GitHub
parent
commit
470d950918
  1. 6
      weed/topology/store_replicate.go

6
weed/topology/store_replicate.go

@ -58,10 +58,14 @@ func ReplicatedWrite(masterNode string, s *storage.Store,
pairMap := make(map[string]string)
if needle.HasPairs() {
err := json.Unmarshal(needle.Pairs, &pairMap)
tmpMap := make(map[string]string)
err := json.Unmarshal(needle.Pairs, &tmpMap)
if err != nil {
glog.V(0).Infoln("Unmarshal pairs error:", err)
}
for k, v := range tmpMap {
pairMap[storage.PairNamePrefix+k] = v
}
}
_, err := operation.Upload(u.String(),

Loading…
Cancel
Save