mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 03:17:57 +08:00
filer.sync: fix when excluded paths is empty
This commit is contained in:
@@ -143,7 +143,7 @@ func runFilerSynchronize(cmd *Command, args []string) bool {
|
|||||||
grpcDialOption,
|
grpcDialOption,
|
||||||
filerA,
|
filerA,
|
||||||
*syncOptions.aPath,
|
*syncOptions.aPath,
|
||||||
strings.Split(*syncOptions.aExcludePaths, ","),
|
util.Split(*syncOptions.aExcludePaths, ","),
|
||||||
*syncOptions.aProxyByFiler,
|
*syncOptions.aProxyByFiler,
|
||||||
filerB,
|
filerB,
|
||||||
*syncOptions.bPath,
|
*syncOptions.bPath,
|
||||||
@@ -179,7 +179,7 @@ func runFilerSynchronize(cmd *Command, args []string) bool {
|
|||||||
grpcDialOption,
|
grpcDialOption,
|
||||||
filerB,
|
filerB,
|
||||||
*syncOptions.bPath,
|
*syncOptions.bPath,
|
||||||
strings.Split(*syncOptions.bExcludePaths, ","),
|
util.Split(*syncOptions.bExcludePaths, ","),
|
||||||
*syncOptions.bProxyByFiler,
|
*syncOptions.bProxyByFiler,
|
||||||
filerA,
|
filerA,
|
||||||
*syncOptions.aPath,
|
*syncOptions.aPath,
|
||||||
|
@@ -63,3 +63,9 @@ func Join(names ...string) string {
|
|||||||
func JoinPath(names ...string) FullPath {
|
func JoinPath(names ...string) FullPath {
|
||||||
return FullPath(Join(names...))
|
return FullPath(Join(names...))
|
||||||
}
|
}
|
||||||
|
func Split(separatedValues string, sep string) []string {
|
||||||
|
if separatedValues == "" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return strings.Split(separatedValues, sep)
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user