Merge branch 'log_database' into boltdb

This commit is contained in:
Barak Michener 2014-08-13 23:04:24 -04:00
commit 69e4f087f8

View file

@ -184,7 +184,7 @@ func PositionOf(prefix []byte, d quad.Direction, qs *TripleStore) int {
case quad.Object:
return 2*qs.hasherSize + 2
case quad.Label:
return 3*qs.hasher.Size() + 2
return 3*qs.hasherSize + 2
}
}
if bytes.Equal(prefix, []byte("po")) {
@ -196,7 +196,7 @@ func PositionOf(prefix []byte, d quad.Direction, qs *TripleStore) int {
case quad.Object:
return qs.hasherSize + 2
case quad.Label:
return 3*qs.hasher.Size() + 2
return 3*qs.hasherSize + 2
}
}
if bytes.Equal(prefix, []byte("os")) {
@ -208,7 +208,7 @@ func PositionOf(prefix []byte, d quad.Direction, qs *TripleStore) int {
case quad.Object:
return 2
case quad.Label:
return 3*qs.hasher.Size() + 2
return 3*qs.hasherSize + 2
}
}
if bytes.Equal(prefix, []byte("cp")) {