Skip to content
Browse files

Fix earlier regression: .equals() is not !=.

I incorrectly substituted .equals() for != to silence a findbugs
reference equality warning.
  • Loading branch information...
1 parent 942958e commit c2af341d011e6ca0eb2c622a76264b7dd80ef3df @rbetts rbetts committed with nshi Apr 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/frontend/org/voltdb/sysprocs/saverestore/SnapshotUtil.java
View
2 src/frontend/org/voltdb/sysprocs/saverestore/SnapshotUtil.java
@@ -586,7 +586,7 @@ public static void retrieveSnapshotFiles(
for (Integer partitionCount : entry.getValue().m_totalPartitionCounts){
if (totalPartitionCount == null) {
totalPartitionCount = partitionCount;
- } else if (totalPartitionCount.equals(partitionCount)) {
+ } else if (!totalPartitionCount.equals(partitionCount)) {
snapshotConsistent = false;
pw.println(indentString + "Partition count is not consistent throughout snapshot files for "
+ entry.getKey() + ". Saw "

0 comments on commit c2af341

Please sign in to comment.
Something went wrong with that request. Please try again.