diff --git a/ledis/t_set.go b/ledis/t_set.go index fdd5f6c..51458bb 100644 --- a/ledis/t_set.go +++ b/ledis/t_set.go @@ -132,7 +132,7 @@ func (db *DB) sDelete(t *tx, key []byte) int64 { var num int64 = 0 it := db.db.RangeLimitIterator(start, stop, store.RangeROpen, 0, -1) for ; it.Valid(); it.Next() { - t.Delete(it.Key()) + t.Delete(it.RawKey()) num++ }