Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Separate out RaftEntryMeta
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
databroker
/
actors
/
dds
/
LocalReadWriteProxyTransaction.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/LocalReadWriteProxyTransaction.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/LocalReadWriteProxyTransaction.java
index ab7cdbc9fa1e5cd4172185ef50722da805135ebd..47ae6a2bc7a27ae60fc1a8b094411c65c03d4a21 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/LocalReadWriteProxyTransaction.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/LocalReadWriteProxyTransaction.java
@@
-107,7
+107,7
@@
final class LocalReadWriteProxyTransaction extends LocalProxyTransaction {
} catch (Exception e) {
LOG.debug("Failed to instantiate modification for {}", identifier, e);
recordedFailure = e;
} catch (Exception e) {
LOG.debug("Failed to instantiate modification for {}", identifier, e);
recordedFailure = e;
- mod = new FailedDataTreeModification(snapshot.
getEffectiveM
odelContext(), e);
+ mod = new FailedDataTreeModification(snapshot.
m
odelContext(), e);
}
modification = mod;
}
}
modification = mod;
}
@@
-297,7
+297,7
@@
final class LocalReadWriteProxyTransaction extends LocalProxyTransaction {
sealOnly();
}
sealOnly();
}
- switch (maybeProtocol.
get
()) {
+ switch (maybeProtocol.
orElseThrow
()) {
case ABORT:
sendMethod.accept(new AbortLocalTransactionRequest(getIdentifier(), localActor()), cb);
break;
case ABORT:
sendMethod.accept(new AbortLocalTransactionRequest(getIdentifier(), localActor()), cb);
break;
@@
-311,7
+311,7
@@
final class LocalReadWriteProxyTransaction extends LocalProxyTransaction {
sendMethod.accept(commitRequest(true), cb);
break;
default:
sendMethod.accept(commitRequest(true), cb);
break;
default:
- throw new IllegalArgumentException("Unhandled protocol " + maybeProtocol.
get
());
+ throw new IllegalArgumentException("Unhandled protocol " + maybeProtocol.
orElseThrow
());
}
}
}
}
}
}