filer.backup use replication.source.filer

This commit is contained in:
zemul committed 2022-11-03 11:22:14 +08:00
1 parent 54d815fa04
commit 07bf6f956c
5 files changed
+14 -7

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ func runFilerReplicate(cmd *Command, args []string) bool {
// avoid recursive replication
if config.GetBool("notification.source.filer.enabled") && config.GetBool("notification.sink.filer.enabled") {
if config.GetString("source.filer.grpcAddress") == config.GetString("sink.filer.grpcAddress") {
if config.GetString("source.filer.address") == config.GetString("sink.filer.address") {
fromDir := config.GetString("source.filer.directory")
toDir := config.GetString("sink.filer.directory")
if strings.HasPrefix(toDir, fromDir) {