accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [01/12] git commit: ACCUMULO-3182 coverity found an unused update to a local variable
Date Fri, 31 Oct 2014 21:27:00 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.6 1890bea20 -> d3900b21c
  refs/heads/master b220cc30f -> 0c51290bc


ACCUMULO-3182 coverity found an unused update to a local variable


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/7e0ba16e
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/7e0ba16e
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/7e0ba16e

Branch: refs/heads/master
Commit: 7e0ba16eddd0a21a649ffb9007d3156df879ba58
Parents: f74681b
Author: Eric C. Newton <eric.newton@gmail.com>
Authored: Fri Oct 31 14:33:21 2014 -0400
Committer: Eric C. Newton <eric.newton@gmail.com>
Committed: Fri Oct 31 14:33:21 2014 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/accumulo/tserver/log/LogSorter.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/7e0ba16e/server/tserver/src/main/java/org/apache/accumulo/tserver/log/LogSorter.java
----------------------------------------------------------------------
diff --git a/server/tserver/src/main/java/org/apache/accumulo/tserver/log/LogSorter.java b/server/tserver/src/main/java/org/apache/accumulo/tserver/log/LogSorter.java
index 6095f88..2cbc680 100644
--- a/server/tserver/src/main/java/org/apache/accumulo/tserver/log/LogSorter.java
+++ b/server/tserver/src/main/java/org/apache/accumulo/tserver/log/LogSorter.java
@@ -173,7 +173,7 @@ public class LogSorter {
     }
 
     private void writeBuffer(String destPath, List<Pair<LogFileKey,LogFileValue>>
buffer, int part) throws IOException {
-      Path path = new Path(destPath, String.format("part-r-%05d", part++));
+      Path path = new Path(destPath, String.format("part-r-%05d", part));
       FileSystem ns = fs.getVolumeByPath(path).getFileSystem();
 
       @SuppressWarnings("deprecation")


Mime
View raw message