| | |
| | | // Equality index. |
| | | if (indexConfig.isEqualityIndex()) |
| | | { |
| | | byte[] keyBytes = attrIndex.makeEqualityKey(normalizedBytes); |
| | | DatabaseEntry key = new DatabaseEntry(keyBytes); |
| | | DatabaseEntry key = new DatabaseEntry(normalizedBytes); |
| | | try |
| | | { |
| | | ConditionResult cr; |
| | |
| | | { |
| | | System.err.printf("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(equalityIndex, keyBytes)); |
| | | keyDump(equalityIndex, normalizedBytes)); |
| | | errorCount++; |
| | | } |
| | | else if (cr == ConditionResult.UNDEFINED) |
| | | { |
| | | incrEntryLimitStats(equalityIndex, keyBytes); |
| | | incrEntryLimitStats(equalityIndex, normalizedBytes); |
| | | } |
| | | } |
| | | catch (DatabaseException e) |
| | |
| | | assert debugException(CLASS_NAME, "verifyAttribute", e); |
| | | System.err.printf("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(equalityIndex, keyBytes)); |
| | | keyDump(equalityIndex, normalizedBytes)); |
| | | errorCount++; |
| | | } |
| | | } |
| | |
| | | normalizedBytes = |
| | | orderingRule.normalizeValue(value.getValue()).value(); |
| | | |
| | | byte[] keyBytes = attrIndex.makeEqualityKey(normalizedBytes); |
| | | DatabaseEntry key = new DatabaseEntry(keyBytes); |
| | | DatabaseEntry key = new DatabaseEntry(normalizedBytes); |
| | | try |
| | | { |
| | | ConditionResult cr; |
| | |
| | | { |
| | | System.err.printf("Missing ID %d%n%s", |
| | | entryID.longValue(), |
| | | keyDump(orderingIndex, keyBytes)); |
| | | keyDump(orderingIndex, normalizedBytes)); |
| | | errorCount++; |
| | | } |
| | | else if (cr == ConditionResult.UNDEFINED) |
| | | { |
| | | incrEntryLimitStats(orderingIndex, keyBytes); |
| | | incrEntryLimitStats(orderingIndex, normalizedBytes); |
| | | } |
| | | } |
| | | catch (DatabaseException e) |
| | |
| | | assert debugException(CLASS_NAME, "verifyAttribute", e); |
| | | System.err.printf("Error reading database: %s%n%s", |
| | | e.getMessage(), |
| | | keyDump(orderingIndex, keyBytes)); |
| | | keyDump(orderingIndex, normalizedBytes)); |
| | | errorCount++; |
| | | } |
| | | } |