diff options
| author | chrislu <chris.lu@gmail.com> | 2023-03-21 23:01:49 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-03-21 23:01:49 -0700 |
| commit | 5db9fcccd4194660a8503696ac44c3539c29d41e (patch) | |
| tree | 9c2afed1dcfb5b958208fbc095919152eb32fc7d /weed/command/filer_sync.go | |
| parent | de4545c28b8283fb80ae03dc95910a0ab3a67142 (diff) | |
| download | seaweedfs-5db9fcccd4194660a8503696ac44c3539c29d41e.tar.xz seaweedfs-5db9fcccd4194660a8503696ac44c3539c29d41e.zip | |
refactoring
Diffstat (limited to 'weed/command/filer_sync.go')
| -rw-r--r-- | weed/command/filer_sync.go | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/weed/command/filer_sync.go b/weed/command/filer_sync.go index efef6250e..fcf60ae87 100644 --- a/weed/command/filer_sync.go +++ b/weed/command/filer_sync.go @@ -287,8 +287,20 @@ func doSubscribeFilerMetaChanges(clientId int32, clientEpoch int32, grpcDialOpti return setOffset(grpcDialOption, targetFiler, getSignaturePrefixByPath(sourcePath), sourceFilerSignature, processor.processedTsWatermark) }) - return pb.FollowMetadata(sourceFiler, grpcDialOption, clientName, clientId, clientEpoch, - sourcePath, nil, sourceFilerOffsetTsNs, 0, targetFilerSignature, processEventFnWithOffset, pb.RetryForeverOnError) + metadataFollowOption := &pb.MetadataFollowOption{ + ClientName: clientName, + ClientId: clientId, + ClientEpoch: clientEpoch, + SelfSignature: targetFilerSignature, + PathPrefix: sourcePath, + AdditionalPathPrefixes: nil, + DirectoriesToWatch: nil, + StartTsNs: sourceFilerOffsetTsNs, + StopTsNs: 0, + EventErrorType: pb.RetryForeverOnError, + } + + return pb.FollowMetadata(sourceFiler, grpcDialOption, metadataFollowOption, processEventFnWithOffset) } |
