| | |
| | | import org.forgerock.opendj.ldap.ByteSequence; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ConditionResult; |
| | | import org.forgerock.opendj.ldap.spi.IndexingOptions; |
| | | import org.opends.server.backends.VerifyConfig; |
| | | import org.opends.server.backends.pluggable.AttributeIndex.MatchingRuleIndex; |
| | | import org.opends.server.backends.pluggable.spi.Cursor; |
| | |
| | | else if (attrIndexList.size() > 0) |
| | | { |
| | | AttributeIndex attrIndex = attrIndexList.get(0); |
| | | final IndexingOptions options = attrIndex.getIndexingOptions(); |
| | | for (MatchingRuleIndex index : attrIndex.getNameToIndexes().values()) |
| | | { |
| | | iterateAttrIndex(txn, index, options); |
| | | iterateAttrIndex(txn, index); |
| | | } |
| | | } |
| | | else if (vlvIndexList.size() > 0) |
| | |
| | | * @param index The index tree to be checked. |
| | | * @throws StorageRuntimeException If an error occurs in the storage. |
| | | */ |
| | | private void iterateAttrIndex(ReadableTransaction txn, MatchingRuleIndex index, IndexingOptions options) |
| | | throws StorageRuntimeException |
| | | private void iterateAttrIndex(ReadableTransaction txn, MatchingRuleIndex index) throws StorageRuntimeException |
| | | { |
| | | if (index == null) |
| | | { |
| | |
| | | |
| | | }; |
| | | |
| | | index.indexEntry(entry, dummySet, options); |
| | | index.indexEntry(entry, dummySet); |
| | | |
| | | if (!foundMatchingKey.get()) |
| | | { |
| | |
| | | */ |
| | | private void verifyAttribute(ReadableTransaction txn, EntryID entryID, Entry entry, AttributeIndex attrIndex) |
| | | { |
| | | IndexingOptions options = attrIndex.getIndexingOptions(); |
| | | for (MatchingRuleIndex index : attrIndex.getNameToIndexes().values()) |
| | | { |
| | | Set<ByteString> keys = new HashSet<ByteString>(); |
| | | index.indexEntry(entry, keys, options); |
| | | index.indexEntry(entry, keys); |
| | | for (ByteString key : keys) |
| | | { |
| | | verifyAttributeInIndex(index, txn, key, entryID); |