From b1824af7d92293579398daa26e67af5513dd90f4 Mon Sep 17 00:00:00 2001 From: siddontang Date: Fri, 15 Aug 2014 09:36:00 +0800 Subject: [PATCH] use rawkey --- ledis/t_set.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ }