option to map remote bucket to trimmed bucket name

This commit is contained in:
Chris Lu
2021-09-05 11:55:52 -07:00
parent 2348e8d8da
commit 60573fd3e2
3 changed files with 20 additions and 3 deletions

View File

@@ -47,6 +47,10 @@ func (option *RemoteSyncOptions) makeBucketedEventProcessor(filerSource *source.
if !entry.IsDirectory {
return nil
}
if entry.RemoteEntry != nil {
// this directory is imported from "remote.mount.buckets" or "remote.mount"
return nil
}
remoteConf, found := option.remoteConfs[*option.createBucketAt]
if !found {
return fmt.Errorf("un-configured remote storage %s", *option.createBucketAt)