Skip to content

Commit

Permalink
fixed bakcup test
Browse files Browse the repository at this point in the history
  • Loading branch information
harshil-goel committed Oct 6, 2024
1 parent f1b87d5 commit dd46d4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion posting/lists.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (vc *viLocalCache) GetWithLockHeld(key []byte) (rval index.Value, rerr erro
func (vc *viLocalCache) GetValueFromPostingList(pl *List) (rval index.Value, rerr error) {
value := pl.findStaticValue(vc.delegate.startTs)

if value == nil {
if value == nil || len(value.Postings) == 0 {
return nil, ErrNoValue
}

Expand Down
2 changes: 1 addition & 1 deletion posting/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (vt *viTxn) GetWithLockHeld(key []byte) (rval index.Value, rerr error) {
func (vt *viTxn) GetValueFromPostingList(pl *List) (rval index.Value, rerr error) {
value := pl.findStaticValue(vt.delegate.StartTs)

if value == nil {
if value == nil || len(value.Postings) == 0 {
//fmt.Println("DIFF", val, err, nil, badger.ErrKeyNotFound)
return nil, ErrNoValue
}
Expand Down

0 comments on commit dd46d4c

Please sign in to comment.