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
This commit is contained in:
parent
250ad9669d
commit
a8c885a5e8
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ func PositionOf(prefix []byte, d quad.Direction, qs *QuadStore) int {
|
||||||
case quad.Object:
|
case quad.Object:
|
||||||
return hashSize + 2
|
return hashSize + 2
|
||||||
case quad.Label:
|
case quad.Label:
|
||||||
return hashSize + 2
|
return 3*hashSize + 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if bytes.Equal(prefix, []byte("os")) {
|
if bytes.Equal(prefix, []byte("os")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue