Skip to content

Commit

Permalink
Fix Visit object meta (#16927)
Browse files Browse the repository at this point in the history
skip need to true when len(mvccNodes) is 0

Approved by: @XuPeng-SH, @sukki37
  • Loading branch information
LeftHandCold authored Jun 16, 2024
1 parent 306baef commit 6cfdcaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/vm/engine/tae/tables/mnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ func (node *memoryNode) CollectAppendInRange(
node.object.RLock()
minRow, maxRow, commitTSVec, abortVec, abortedMap :=
node.object.appendMVCC.CollectAppendLocked(start, end, mp)
if commitTSVec == nil || abortVec == nil {
node.object.RUnlock()
return nil, nil
}
batWithVer, err = node.GetDataWindowOnWriteSchema(minRow, maxRow, mp)
if err != nil {
node.object.RUnlock()
Expand Down

0 comments on commit 6cfdcaf

Please sign in to comment.