mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 15:59:24 +08:00
when creating bucket, use remote storage client for default storage
This commit is contained in:
@@ -105,7 +105,6 @@ func runFilerRemoteSynchronize(cmd *Command, args []string) bool {
|
||||
})
|
||||
}
|
||||
|
||||
storageName := *remoteSyncOptions.createBucketAt
|
||||
remoteSyncOptions.bucketsDir = "/buckets"
|
||||
// check buckets again
|
||||
remoteSyncOptions.WithFilerClient(func(filerClient filer_pb.SeaweedFilerClient) error {
|
||||
@@ -117,10 +116,11 @@ func runFilerRemoteSynchronize(cmd *Command, args []string) bool {
|
||||
return nil
|
||||
})
|
||||
|
||||
storageName := *remoteSyncOptions.createBucketAt
|
||||
if storageName != "" {
|
||||
fmt.Printf("synchronize %s, default new bucket creation in %s ...\n", remoteSyncOptions.bucketsDir, storageName)
|
||||
util.RetryForever("filer.remote.sync buckets "+storageName, func() error {
|
||||
return followBucketUpdatesAndUploadToRemote(&remoteSyncOptions, filerSource, storageName)
|
||||
return remoteSyncOptions.followBucketUpdatesAndUploadToRemote(filerSource)
|
||||
}, func(err error) bool {
|
||||
if err != nil {
|
||||
glog.Errorf("synchronize %s to %s: %v", remoteSyncOptions.bucketsDir, storageName, err)
|
||||
|
Reference in New Issue
Block a user