set bucket creation timestamp properly for legacy FS backend (#15800)

This commit is contained in:
Harshavardhana 2022-10-06 02:46:31 -07:00 committed by GitHub
parent 2a13cc28f2
commit 78385bfbeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -473,6 +473,7 @@ func (fs *FSObjects) MakeBucketWithLocation(ctx context.Context, bucket string,
}
meta := newBucketMetadata(bucket)
meta.SetCreatedAt(opts.CreatedAt)
if err := meta.Save(ctx, fs); err != nil {
return toObjectErr(err, bucket)
}