Fix regression on index create + delete in the same tx
Resolves
@@ -148,7 +148,8 @@ public class OClassIndexManager {
for (final String field : indexFields) {
if (!field.equals(multiValueField))
- if (dirtyFields.contains(field)) {
+ if (dirtyFields.contains(field)
+ && !(ODocumentInternal.rawEntry(iRecord, field)).isTxCreated()) {
origValues.add(iRecord.getOriginalValue(field));
} else {
origValues.add(iRecord.field(field));
