BUG-5280: use a lambda for createLocalHistory()/close()
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / actors / client / ClientActorBehavior.java
index 1d812b7590b0715468e9e53793a6529320785f0b..7ac06d307f1c9b6ecbd77896d0208d3e4d668e25 100644 (file)
@@ -36,7 +36,9 @@ public abstract class ClientActorBehavior extends RecoveredClientActorBehavior<C
 
     @Override
     final ClientActorBehavior onReceiveCommand(final Object command) {
-        if (command instanceof RequestFailure) {
+        if (command instanceof InternalCommand) {
+            return ((InternalCommand) command).execute();
+        } else if (command instanceof RequestFailure) {
             final RequestFailure<?, ?> failure = (RequestFailure<?, ?>) command;
             final RequestException cause = failure.getCause();
             if (cause instanceof RetiredGenerationException) {