Additional fix for issue 4117: Previous fix introduced a bug where a mod DN operation could corrupt the dn2id database.
| | |
| | | } |
| | | |
| | | // Get the next DN. |
| | | data = new DatabaseEntry(); |
| | | status = cursor.getNext(key, data, LockMode.DEFAULT); |
| | | } |
| | | } |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.backends.jeb; |
| | | |
| | |
| | | EntryID newID = ec.getDN2ID().get(null, DN.decode("ou=Good People,ou=JEB Testers,dc=test,dc=com"), LockMode.DEFAULT); |
| | | assertNotNull(newID); |
| | | assertTrue(newID.compareTo(newSuperiorID) > 0); |
| | | assertNotNull(backend.getEntry(DN.decode("uid=user.0,ou=Good People,ou=JEB Testers,dc=test,dc=com"))); |
| | | EntryID newSubordinateID = ec.getDN2ID().get(null, |
| | | DN.decode("uid=user.0,ou=Good People,ou=JEB Testers,dc=test,dc=com"), LockMode.DEFAULT); |
| | | DN subDN = DN.decode("uid=user.0,ou=Good People,ou=JEB Testers,dc=test,dc=com"); |
| | | Entry subEntry = backend.getEntry(subDN); |
| | | assertNotNull(subEntry); |
| | | assertEquals(subDN, subEntry.getDN()); |
| | | EntryID newSubordinateID = ec.getDN2ID().get(null, subDN, LockMode.DEFAULT); |
| | | assertTrue(newSubordinateID.compareTo(newID) > 0); |
| | | |
| | | assertNull(backend.getEntry(DN.decode("ou=People,dc=test,dc=com"))); |