*/
TransactionConfig txnConfig = new TransactionConfig();
txnConfig.setDurability(NO_ACK.getDurability());
txnConfig.setConsistencyPolicy(NO_CONSISTENCY);
NameIdPair nameIdPair = repImpl.getRepNode().getNameIdPair();
nameIdPair.revertToNull(); /* read transaction, so null id is ok. */
/* Now delete old nodes and the group, and establish a new group */
Txn txn = new MasterTxn(repImpl, txnConfig, nameIdPair);
RepGroupImpl prevRepGroup = fetchGroupObject(txn, dbImpl);
txn.commit();
final int nodeIdSequenceStart = prevRepGroup.getNodeIdSequence();
final DatabaseEntry keyEntry = new DatabaseEntry();
final DatabaseEntry value = new DatabaseEntry();
/*
* We have the "predicted" real node id, so set it and it will be used
* in the commit lns that will be written in future.
*/
final int firstNodeId = nodeIdSequenceStart + 1;
nameIdPair.setId(firstNodeId);
RepNodeImpl firstNode = new RepNodeImpl(nodeName, hostname, port);
final BarrierState barrierState = new BarrierState(lastOldVLSN,
System.currentTimeMillis());
firstNode.setBarrierState(barrierState);