CDS: Implement front-end support for local transactions
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / DataTreeCandidatePayload.java
index 54167b2011d0585645f2633e6169ab1ebde8cbc1..c77aef938ec3c60adb3d21f02159cbcc59829a0b 100644 (file)
@@ -78,7 +78,8 @@ final class DataTreeCandidatePayload extends Payload implements Externalizable {
             writer.writeNormalizedNode(node.getDataAfter().get());
             break;
         case UNMODIFIED:
-            throw new IllegalArgumentException("Unmodified candidate should never be in the payload");
+            out.writeByte(UNMODIFIED);
+            break;
         default:
             throw new IllegalArgumentException("Unhandled node type " + node.getModificationType());
         }