Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Avoid IllegalArgument on missing source
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
ShardCommitCoordinator.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardCommitCoordinator.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardCommitCoordinator.java
index 8b95404c4e6bdd06e2f4bb9d234eeab4465dd81f..951bc22545804af11bbc37fd8ef28d03cd53fc02 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardCommitCoordinator.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardCommitCoordinator.java
@@
-34,7
+34,7
@@
public class ShardCommitCoordinator {
private final Queue<CohortEntry> queuedCohortEntries;
private final Queue<CohortEntry> queuedCohortEntries;
- private
final
int queueCapacity;
+ private int queueCapacity;
private final Logger log;
private final Logger log;
@@
-54,6
+54,10
@@
public class ShardCommitCoordinator {
queuedCohortEntries = new LinkedList<>();
}
queuedCohortEntries = new LinkedList<>();
}
+ public void setQueueCapacity(int queueCapacity) {
+ this.queueCapacity = queueCapacity;
+ }
+
/**
* This method caches a cohort entry for the given transactions ID in preparation for the
* subsequent 3-phase commit.
/**
* This method caches a cohort entry for the given transactions ID in preparation for the
* subsequent 3-phase commit.