added changes

This commit is contained in:
Harshil Goel
2025-07-03 10:01:34 +05:30
parent 3151feea93
commit 20de0e80c0
+3 -3
View File
@@ -182,9 +182,9 @@ func (mt *memTable) Put(key []byte, value y.ValueStruct) error {
if mt.wal != nil {
// If WAL exceeds opt.ValueLogFileSize, we'll force flush the memTable. See logic in
// ensureRoomForWrite.
if err := mt.wal.writeEntry(mt.buf, entry, mt.opt); err != nil {
return y.Wrapf(err, "cannot write entry to WAL file")
}
// if err := mt.wal.writeEntry(mt.buf, entry, mt.opt); err != nil {
// return y.Wrapf(err, "cannot write entry to WAL file")
// }
}
// We insert the finish marker in the WAL but not in the memtable.
if entry.meta&bitFinTxn > 0 {