proper handling inline key descriptors

This commit is contained in:
Maxim.Mossienko
2011-07-22 20:21:03 +04:00
parent f6a60cebd2
commit 3248707551
@@ -221,7 +221,7 @@ public class PersistentBTreeEnumerator<Data> extends PersistentEnumeratorBase<Da
return NULL_ID;
}
int indexNodeValueAddress = 0;
int indexNodeValueAddress = keyValue != null ? keyValue:0;
int collisionAddress = NULL_ID;
if (!myInlineKeysNoMapping) {
@@ -256,6 +256,8 @@ public class PersistentBTreeEnumerator<Data> extends PersistentEnumeratorBase<Da
}
if (!saveNewValue) return NULL_ID;
} else {
if (keyValue != null) return indexNodeValueAddress;
}
int newValueId = writeData(value, valueHC); // TODO: we can store at Btree leaf index