commit | 4bb70c60cea7b2e8de346583c3693a65405982cd | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan@onlab.us> | Tue Nov 25 23:47:12 2014 -0800 |
committer | Madan Jampani <madan@onlab.us> | Tue Nov 25 23:47:36 2014 -0800 |
tree | 8dc35f449daffb49a19887c34ae10fac12f4d9cd | |
parent | 80d5659844a4f33f8d92eecbdedd5d40a00b936f [diff] |
Fix for copycat log max size setting. Turns out ^ is the bitwise exlusive or :) Change-Id: I5a8e5e367d9fddc7441814aed91008608583aab4
diff --git a/core/store/dist/src/main/java/org/onlab/onos/store/service/impl/DatabaseManager.java b/core/store/dist/src/main/java/org/onlab/onos/store/service/impl/DatabaseManager.java index f3cc515..31f4bf0 100644 --- a/core/store/dist/src/main/java/org/onlab/onos/store/service/impl/DatabaseManager.java +++ b/core/store/dist/src/main/java/org/onlab/onos/store/service/impl/DatabaseManager.java
@@ -118,7 +118,7 @@ private volatile LeaderElectEvent myLeaderEvent = null; // TODO make this configurable - private int maxLogSizeBytes = 128 * (1024 ^ 2); + private int maxLogSizeBytes = 128 * (1024 * 1024); // TODO make this configurable private long electionTimeoutMs = 5000; // CopyCat default: 2000