- tx.delete(LogicalDatastoreType.CONFIGURATION, iid);
- putCnt++;
- if (putCnt == writesPerTx) {
- try {
- tx.submit().checkedGet();
- txOk++;
- } catch (TransactionCommitFailedException e) {
- LOG.error("Transaction failed: {}", e.toString());
- txError++;
- }
- tx = dataBroker.newWriteOnlyTransaction();
- putCnt = 0;
- }
- }
- if (putCnt != 0) {
+ tx.delete(dsType, iid);
+ putCnt++;
+ if (putCnt == writesPerTx) {