0
0

correctly prefix internal rows with 'i' and print them in debug

This commit is contained in:
Marty Schoch 2015-11-30 10:17:15 -05:00
parent 17cfe8cff0
commit 68d8742826

View File

@ -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)
}