Make LocalThreePhaseCommitCohort::operationError final
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / LocalTransactionContext.java
index 9398171b202bd2f05a5d9028946ebe26d44ce175..75cdd1b597c0bc29bf8ee8df4745b8a97902d147 100644 (file)
@@ -112,11 +112,7 @@ abstract class LocalTransactionContext extends AbstractTransactionContext {
 
     private LocalThreePhaseCommitCohort ready() {
         logModificationCount();
-        LocalThreePhaseCommitCohort cohort = readySupport.onTransactionReady(getWriteDelegate());
-        if (operationError != null) {
-            cohort.setOperationError(operationError);
-        }
-        return cohort;
+        return readySupport.onTransactionReady(getWriteDelegate(), operationError);
     }
 
     @Override