aboutsummaryrefslogtreecommitdiff
path: root/go/replication/store_replicate.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2014-02-14 17:10:49 -0800
committerChris Lu <chris.lu@gmail.com>2014-02-14 17:10:49 -0800
commitedae676913363bdd1e5a50bf0778fdcc3c6d6051 (patch)
tree8711d0e0382ba15b2810e7783cdede4283d7e1c4 /go/replication/store_replicate.go
parentef4c2c0d1e5bb45a63cde703013871daa401d1ef (diff)
downloadseaweedfs-edae676913363bdd1e5a50bf0778fdcc3c6d6051.tar.xz
seaweedfs-edae676913363bdd1e5a50bf0778fdcc3c6d6051.zip
1. volume server auto detect clustered master nodes
2. remove operation package dependency on storage
Diffstat (limited to 'go/replication/store_replicate.go')
-rw-r--r--go/replication/store_replicate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/replication/store_replicate.go b/go/replication/store_replicate.go
index bc630c5d1..3e709de44 100644
--- a/go/replication/store_replicate.go
+++ b/go/replication/store_replicate.go
@@ -71,7 +71,7 @@ func ReplicatedDelete(masterNode string, store *storage.Store, volumeId storage.
}
func distributedOperation(masterNode string, store *storage.Store, volumeId storage.VolumeId, op func(location operation.Location) bool) bool {
- if lookupResult, lookupErr := operation.Lookup(masterNode, volumeId); lookupErr == nil {
+ if lookupResult, lookupErr := operation.Lookup(masterNode, volumeId.String()); lookupErr == nil {
length := 0
selfUrl := (store.Ip + ":" + strconv.Itoa(store.Port))
results := make(chan bool)