BatchedModifications batched = newBatchedModifications(nextTransactionId(), id, node, true, true, 1);
DataTreeModification modification = store.getDataTree().takeSnapshot().newModification();
batched.apply(modification);
- modification.ready();
- store.applyForeignCandidate(batched.getTransactionID(), store.getDataTree().prepare(modification));
+ store.commit(modification);
}
public void mergeToStore(final ShardDataTree store, final YangInstanceIdentifier id,
DataTreeModification modification = store.getDataTree().takeSnapshot().newModification();
batched.apply(modification);
- modification.ready();
- store.applyForeignCandidate(batched.getTransactionID(), store.getDataTree().prepare(modification));
+ store.commit(modification);
}
public static void writeToStore(final DataTree store, final YangInstanceIdentifier id,