From a8c885a5e83bd900bf4cfc3054fb284af652f161 Mon Sep 17 00:00:00 2001 From: Igor Mihalik Date: Tue, 28 Jul 2015 14:09:23 +0200 Subject: [PATCH] Fixed multiplier for position of "label" in case of "po" key entry in "po", the ordering is {"predicate","object","subject","label"} thus the offset of label is 3*hashSize+2 --- graph/leveldb/iterator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph/leveldb/iterator.go b/graph/leveldb/iterator.go index 072543d..67640b1 100644 --- a/graph/leveldb/iterator.go +++ b/graph/leveldb/iterator.go @@ -199,7 +199,7 @@ func PositionOf(prefix []byte, d quad.Direction, qs *QuadStore) int { case quad.Object: return hashSize + 2 case quad.Label: - return hashSize + 2 + return 3*hashSize + 2 } } if bytes.Equal(prefix, []byte("os")) {