accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [02/12] git commit: ACCUMULO-3263 coverity found a strint-to-byte conversion using the default character type
Date Fri, 31 Oct 2014 21:27:01 GMT
ACCUMULO-3263 coverity found a strint-to-byte conversion using the default character type


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

Branch: refs/heads/master
Commit: 1890bea201084f9be08cf78c0e31a106f93ffd2d
Parents: 7e0ba16
Author: Eric C. Newton <eric.newton@gmail.com>
Authored: Fri Oct 31 14:34:16 2014 -0400
Committer: Eric C. Newton <eric.newton@gmail.com>
Committed: Fri Oct 31 14:34:16 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/accumulo/server/util/RandomizeVolumes.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/1890bea2/server/base/src/main/java/org/apache/accumulo/server/util/RandomizeVolumes.java
----------------------------------------------------------------------
diff --git a/server/base/src/main/java/org/apache/accumulo/server/util/RandomizeVolumes.java
b/server/base/src/main/java/org/apache/accumulo/server/util/RandomizeVolumes.java
index afc3902..dd540f2 100644
--- a/server/base/src/main/java/org/apache/accumulo/server/util/RandomizeVolumes.java
+++ b/server/base/src/main/java/org/apache/accumulo/server/util/RandomizeVolumes.java
@@ -19,8 +19,9 @@ package org.apache.accumulo.server.util;
 import java.io.IOException;
 import java.util.Map.Entry;
 
-import org.apache.accumulo.server.security.SystemCredentials;
+import org.apache.accumulo.core.Constants;
 
+import org.apache.accumulo.server.security.SystemCredentials;
 import org.apache.accumulo.core.cli.ClientOnRequiredTable;
 import org.apache.accumulo.core.client.AccumuloException;
 import org.apache.accumulo.core.client.AccumuloSecurityException;
@@ -106,7 +107,7 @@ public class RandomizeVolumes {
       Mutation m = new Mutation(key.getRow());
       
       String newLocation = vm.choose(ServerConstants.getBaseUris()) + Path.SEPARATOR + ServerConstants.TABLE_DIR
+ Path.SEPARATOR + tableId + Path.SEPARATOR + directory;
-      m.put(key.getColumnFamily(), key.getColumnQualifier(), new Value(newLocation.getBytes()));
+      m.put(key.getColumnFamily(), key.getColumnQualifier(), new Value(newLocation.getBytes(Constants.UTF8)));
       if (log.isTraceEnabled()) {
         log.trace("Replacing " + oldLocation + " with " + newLocation);
       }


Mime
View raw message