correctly prefix internal rows with 'i' and print them in debug
This commit is contained in:
parent
17cfe8cff0
commit
68d8742826
|
@ -9,7 +9,9 @@
|
|||
|
||||
package firestorm
|
||||
|
||||
var InternalKeyPrefix = []byte{'d'}
|
||||
import "fmt"
|
||||
|
||||
var InternalKeyPrefix = []byte{'i'}
|
||||
|
||||
type InternalRow struct {
|
||||
key []byte
|
||||
|
@ -59,3 +61,7 @@ func (ir *InternalRow) ValueTo(buf []byte) (int, error) {
|
|||
func (ir *InternalRow) Value() []byte {
|
||||
return ir.val
|
||||
}
|
||||
|
||||
func (ir *InternalRow) String() string {
|
||||
return fmt.Sprintf("InternalStore - Key: %s (% x) Val: %s (% x)", ir.key, ir.key, ir.val, ir.val)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user