Skip to content

Commit 349b5df

Browse files
fixed bug
1 parent 30ff3f7 commit 349b5df

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

posting/lists.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,9 @@ func (lc *LocalCache) getSingleInternal(key []byte, readFromDisk bool) (*List, e
174174

175175
var pl *List
176176
var k int
177+
var err error
177178
if readFromDisk {
178-
var err error
179179
pl, err, k = GetSingleValueForKey(key, lc.startTs)
180-
if err != nil {
181-
return pl, err
182-
}
183180
} else {
184181
pl = &List{
185182
key: key,
@@ -197,7 +194,7 @@ func (lc *LocalCache) getSingleInternal(key []byte, readFromDisk bool) (*List, e
197194
}
198195
lc.RUnlock()
199196
fmt.Println("Here6")
200-
return pl, nil
197+
return pl, err
201198
}
202199

203200
func (lc *LocalCache) getInternal(key []byte, readFromDisk bool) (*List, error) {

0 commit comments

Comments
 (0)