mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjust randomized bucket name
This commit is contained in:
parent
488afa5002
commit
42d97a3442
|
@ -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…
Reference in a new issue