| | |
| | | import org.opends.server.types.SortOrder; |
| | | import org.opends.server.util.StaticUtils; |
| | | |
| | | import com.sleepycat.je.LockMode; |
| | | |
| | | import static org.opends.messages.JebMessages.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | |
| | | { |
| | | debugBuilder.append("vlv="); |
| | | debugBuilder.append("[INDEX:"); |
| | | debugBuilder.append(treeName.replace(entryContainer.getDatabasePrefix() + "_", "")); |
| | | debugBuilder.append(treeName.getIndex()); |
| | | debugBuilder.append("]"); |
| | | } |
| | | |
| | |
| | | Cursor cursor = openCursor(txn); |
| | | try |
| | | { |
| | | LockMode lockMode = LockMode.DEFAULT; |
| | | ByteSequence vBytes = vlvRequest.getGreaterThanOrEqualAssertion(); |
| | | ByteStringBuilder keyBytes = new ByteStringBuilder(vBytes.length() + 4); |
| | | keyBytes.appendBERLength(vBytes.length()); |
| | |
| | | { |
| | | logSearchKeyResult(cursor.getKey()); |
| | | } |
| | | SortValuesSet sortValuesSet = |
| | | new SortValuesSet(cursor.getKey(), cursor.getValue(), this); |
| | | SortValuesSet sortValuesSet = new SortValuesSet(cursor.getKey(), cursor.getValue(), this); |
| | | |
| | | int adjustedTargetOffset = sortValuesSet.binarySearch( |
| | | -1, vlvRequest.getGreaterThanOrEqualAssertion()); |
| | |
| | | ccr.addMessage(NOTE_JEB_INDEX_ADD_REQUIRES_REBUILD.get(treeName)); |
| | | try |
| | | { |
| | | state.putIndexTrustState(null, this, false); |
| | | state.putIndexTrustState(txn, this, false); |
| | | } |
| | | catch(StorageRuntimeException de) |
| | | { |