* entry, 0 if no RUV is present
*/
public Long checkRUVCompat() {
Long genId = null;
SearchResultEntry ruvEntry = null;
try
{
// Search the RUV in the DB
ruvEntry = searchRUVEntry();
if (ruvEntry == null)
return null;
// Check if the serverState is already initialized
if( !isServerStateInitilized())
{
// Translate the ruv to serverState
// and GenerationId
genId = initializeStateWithRUVEntry(ruvEntry);
}
}
catch (Exception e)
{
Message message = NOTE_ERR_WHILE_TRYING_TO_DECODE_RUV_IN_STATE.get(
baseDn.toString());
logError(message);
}
// In any case, remove the RUV entry
// if it exists
DeleteOperationBasis del = new DeleteOperationBasis(conn,
InternalClientConnection.nextOperationID(),
InternalClientConnection.nextMessageID(), null,
ByteString.valueOf(ruvEntry.getDN().toNormalizedString()));
// Run the internal operation
del.setInternalOperation(true);
del.setSynchronizationOperation(true);
del.setDontSynchronize(true);