diff --git a/ledis/t_bit.go b/ledis/t_bit.go index 37b788d..bc208a0 100644 --- a/ledis/t_bit.go +++ b/ledis/t_bit.go @@ -121,7 +121,7 @@ func (db *DB) bEncodeMetaKey(key []byte) []byte { mk[0] = db.index mk[1] = BitMetaType - copy(mk, key) + copy(mk[2:], key) return mk }