Minor code simplification.
| | |
| | | long count = count(txn); |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | logger.trace(messageToLog(true, treeName, null, null, null)); |
| | | logger.trace(messageToLog(true, treeName, txn, null, null)); |
| | | } |
| | | return count; |
| | | } |
| | |
| | | builder.append(")"); |
| | | builder.append(" db="); |
| | | builder.append(treeName); |
| | | if (txn != null) |
| | | { |
| | | builder.append(" txn="); |
| | | builder.append(txn); |
| | | } |
| | | else |
| | | { |
| | | builder.append(" txnid=none"); |
| | | } |
| | | |
| | | builder.append(" txn="); |
| | | builder.append(txn); |
| | | builder.append(ServerConstants.EOL); |
| | | if (key != null) |
| | | { |
| | |
| | | return pos >= 0; |
| | | } |
| | | |
| | | private void put(WriteableStorage txn, SortValuesSet set) throws DirectoryException |
| | | { |
| | | put(txn, set.getKeyBytes(), set.toByteString()); |
| | | } |
| | | |
| | | /** |
| | | * Gets the types of the attribute values to sort. |
| | | * |
| | |
| | | if(newSize >= sortedSetCapacity) |
| | | { |
| | | SortValuesSet splitSortValuesSet = sortValuesSet.split(newSize / 2); |
| | | put(txn, splitSortValuesSet); // splitAfter |
| | | put(txn, sortValuesSet); // after |
| | | put(txn, splitSortValuesSet.getKeyBytes(), splitSortValuesSet.toByteString()); // splitAfter |
| | | put(txn, sortValuesSet.getKeyBytes(), sortValuesSet.toByteString()); // after |
| | | |
| | | if(logger.isTraceEnabled()) |
| | | { |