Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
datoug committed Feb 17, 2017
1 parent 8aae5d5 commit 35d9a36
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion services/replicator/metadataReconciler.go
Expand Up @@ -621,7 +621,7 @@ func (r *metadataReconciler) sealExtentInStore(destUUID string, extentUUID strin

var errorOccured bool
for _, store := range readExtentResult.GetExtentStats().GetExtent().GetStoreUUIDs() {
storeClient, _, err := r.replicator.clientFactory.GetThriftStoreClientUUID(store, destUUID)
storeClient, _, err := r.replicator.GetClientFactory().GetThriftStoreClientUUID(store, destUUID)
if err != nil {
lclLg.WithFields(bark.Fields{
common.TagErr: err,
Expand Down
2 changes: 0 additions & 2 deletions services/replicator/replicator.go
Expand Up @@ -61,7 +61,6 @@ type (
tenancy string
defaultAuthoritativeZone string
replicatorclientFactory ClientFactory
clientFactory common.ClientFactory
remoteReplicatorConn map[string]*outConnection
remoteReplicatorConnMutex sync.RWMutex
storehostConn map[string]*outConnection
Expand Down Expand Up @@ -141,7 +140,6 @@ func (r *Replicator) Start(thriftService []thrift.TChanServer) {
r.hostIDHeartbeater = common.NewHostIDHeartbeater(r.metaClient, r.GetHostUUID(), r.GetHostPort(), r.GetHostName(), r.logger)
r.hostIDHeartbeater.Start()
r.replicatorclientFactory.SetTChannel(r.GetTChannel())
r.clientFactory = r.GetClientFactory()

r.metadataReconciler = NewMetadataReconciler(r.metaClient, r, r.localZone, r.logger, r.m3Client)
r.metadataReconciler.Start()
Expand Down

0 comments on commit 35d9a36

Please sign in to comment.