Skip to content

Commit 531420c

Browse files
cuishuanglmb
authored andcommitted
map: fix problematic error returns
Signed-off-by: cuishuang <[email protected]>
1 parent 995422c commit 531420c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

map.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ func (m *Map) batchLookupPerCPU(cmd sys.Cmd, cursor *MapBatchCursor, keysOut, va
11821182

11831183
n, sysErr := m.batchLookupCmd(cmd, cursor, count, keysOut, valuePtr, opts)
11841184
if sysErr != nil && !errors.Is(sysErr, unix.ENOENT) {
1185-
return 0, err
1185+
return 0, sysErr
11861186
}
11871187

11881188
err = unmarshalBatchPerCPUValue(valuesOut, count, int(m.valueSize), valueBuf)

0 commit comments

Comments
 (0)