adjust randomized bucket name

This commit is contained in:
chrislu 2021-12-05 12:36:58 -08:00
parent 488afa5002
commit 42d97a3442

View file

@ -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)