Fix for copycat log max size setting. Turns out ^ is the bitwise exlusive or :)
Change-Id: I5a8e5e367d9fddc7441814aed91008608583aab4
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -118,7 +118,7 @@ public class DatabaseManager implements DatabaseService, DatabaseAdminService { | ... | @@ -118,7 +118,7 @@ public class DatabaseManager implements DatabaseService, DatabaseAdminService { |
| 118 | private volatile LeaderElectEvent myLeaderEvent = null; | 118 | private volatile LeaderElectEvent myLeaderEvent = null; |
| 119 | 119 | ||
| 120 | // TODO make this configurable | 120 | // TODO make this configurable |
| 121 | - private int maxLogSizeBytes = 128 * (1024 ^ 2); | 121 | + private int maxLogSizeBytes = 128 * (1024 * 1024); |
| 122 | 122 | ||
| 123 | // TODO make this configurable | 123 | // TODO make this configurable |
| 124 | private long electionTimeoutMs = 5000; // CopyCat default: 2000 | 124 | private long electionTimeoutMs = 5000; // CopyCat default: 2000 | ... | ... |
-
Please register or login to post a comment