Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gouhongshen committed Jan 15, 2025
1 parent c750b6e commit 39fe453
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/vm/engine/disttae/logtailreplay/rows_iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
type RowsIter interface {
Next() bool
Close() error
Entry() RowEntry
Entry() *RowEntry
}

type rowsIter struct {
Expand Down Expand Up @@ -90,8 +90,8 @@ func (p *rowsIter) Next() bool {
}
}

func (p *rowsIter) Entry() RowEntry {
return *p.iter.Item()
func (p *rowsIter) Entry() *RowEntry {
return p.iter.Item()
}

func (p *rowsIter) Close() error {
Expand All @@ -106,7 +106,7 @@ type primaryKeyIter struct {
rows *btree.BTreeG[*RowEntry]
primaryIndex *btree.BTreeG[*PrimaryIndexEntry]
tombstoneRowIdIdx *btree.BTreeG[*PrimaryIndexEntry]
curRow RowEntry
curRow *RowEntry

specHint struct {
isDelIter bool
Expand Down Expand Up @@ -532,7 +532,7 @@ func (p *primaryKeyIter) isPKItemValid(pkItem PrimaryIndexEntry) bool {
}

if row.ID == pkItem.RowEntryID {
p.curRow = *row
p.curRow = row
return true
}

Expand All @@ -556,7 +556,7 @@ func (p *primaryKeyIter) Next() bool {
}
}

func (p *primaryKeyIter) Entry() RowEntry {
func (p *primaryKeyIter) Entry() *RowEntry {
return p.curRow
}

Expand Down

0 comments on commit 39fe453

Please sign in to comment.