Browse Source

adjust randomized bucket name

pull/2500/head
chrislu 3 years ago
parent
commit
42d97a3442
  1. 2
      weed/command/filer_remote_gateway_buckets.go

2
weed/command/filer_remote_gateway_buckets.go

@ -91,7 +91,7 @@ func (option *RemoteGatewayOptions) makeBucketedEventProcessor(filerSource *sour
if len(bucketName)+5 > 63 { if len(bucketName)+5 > 63 {
bucketName = bucketName[:58] bucketName = bucketName[:58]
} }
bucketName = fmt.Sprintf("%s-%4d", bucketName, rand.Uint32()%10000)
bucketName = fmt.Sprintf("%s-%04d", bucketName, rand.Uint32()%10000)
} }
glog.V(0).Infof("create bucket %s", bucketName) glog.V(0).Infof("create bucket %s", bucketName)

Loading…
Cancel
Save