mirror of
https://github.com/luxfi/zapdb.git
synced 2026-07-27 06:54:45 +00:00
added changes
This commit is contained in:
+3
-3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user