mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-31 09:20:50 +01:00
fix delete version object
This commit is contained in:
1 parent
cf75abb408
commit
53e9d408ab
1 file changed
+10
-3
+10
-3
@@ -145,11 +145,18 @@ func maxUint64(x, y uint64) uint64 {
|
||||
return y
|
||||
}
|
||||
|
||||
func (entry *Entry) IsExpireS3Enabled() (found bool) {
|
||||
func (entry *Entry) IsExpireS3Enabled() (exist bool) {
|
||||
if entry.Extended != nil {
|
||||
_, found = entry.Extended[s3_constants.SeaweedFSExpiresS3]
|
||||
_, exist = entry.Extended[s3_constants.SeaweedFSExpiresS3]
|
||||
}
|
||||
return found
|
||||
return exist
|
||||
}
|
||||
|
||||
func (entry *Entry) IsS3Versioning() (exist bool) {
|
||||
if entry.Extended != nil {
|
||||
_, exist = entry.Extended[s3_constants.ExtVersionIdKey]
|
||||
}
|
||||
return exist
|
||||
}
|
||||
|
||||
func (entry *Entry) GetS3ExpireTime() (expireTime time.Time) {
|
||||
|
||||
Reference in new issue
Block a user