Skip to content

Commit

Permalink
GC tombstone object (#16102) 1.2 (#16238)
Browse files Browse the repository at this point in the history
The expired tombstone object has not been GC
now fixed

Approved by: @XuPeng-SH, @sukki37
  • Loading branch information
LeftHandCold authored May 22, 2024
1 parent d15eb6a commit 5f5d068
Show file tree
Hide file tree
Showing 5 changed files with 290 additions and 89 deletions.
5 changes: 5 additions & 0 deletions pkg/container/types/rowid.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ func (b *Blockid) String() string {
return fmt.Sprintf("%s-%d-%d", uuid.String(), filen, blkn)
}

func (b *Blockid) ObjectNameString() string {
fileNum, _ := b.Offsets()
return fmt.Sprintf("%v_%05d", b.Segment().ToString(), fileNum)
}

func (b *Blockid) ShortString() string {
filen, blkn := b.Offsets()
return fmt.Sprintf("%d-%d", filen, blkn)
Expand Down
Loading

0 comments on commit 5f5d068

Please sign in to comment.