From 68d874282614a250d1b7521600c3b0fc599f5384 Mon Sep 17 00:00:00 2001 From: Marty Schoch Date: Mon, 30 Nov 2015 10:17:15 -0500 Subject: [PATCH] correctly prefix internal rows with 'i' and print them in debug --- index/firestorm/internal.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index/firestorm/internal.go b/index/firestorm/internal.go index 21239ce6..8b7aa7ad 100644 --- a/index/firestorm/internal.go +++ b/index/firestorm/internal.go @@ -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) +}