Fix issue 3833: corrupt index in a replication topology
Replace use of HashMap with TreeMap in order to handle byte[] keys.
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.backends.jeb; |
| | | |
| | |
| | | List<Modification> mods) |
| | | throws DatabaseException |
| | | { |
| | | HashMap<byte[], Boolean> modifiedKeys = new HashMap<byte[], Boolean>(); |
| | | TreeMap<byte[], Boolean> modifiedKeys = |
| | | new TreeMap<byte[], Boolean>(indexer.getComparator()); |
| | | |
| | | indexer.modifyEntry(oldEntry, newEntry, mods, modifiedKeys); |
| | | for (Map.Entry<byte[], Boolean> modifiedKey : modifiedKeys.entrySet()) |