In lines https://github.com/ericnorris/node-cdb/blob/master/src/readable-cdb.js#L122-L128 The offset should be reduced only if the payload is the same, i.e. ``` if (buffer.toString() == key) { if (offset === 0) { fs.read(self.fd, new Buffer(dataLength), 0, dataLength, recordPosition + 8 + keyLength, returnData); } else { offset--; readSlot(++slot); } } else { readSlot(++slot); } ```
In lines https://github.com/ericnorris/node-cdb/blob/master/src/readable-cdb.js#L122-L128
The offset should be reduced only if the payload is the same, i.e.