Merge branch 'cassandra-2.1' into cassandra-2.2

This commit is contained in:
Sylvain Lebresne 2015-11-26 15:43:55 +01:00
commit e4f3dbac02
2 changed files with 10 additions and 1 deletions

View File

@ -13,6 +13,7 @@
* Deprecate Pig support (CASSANDRA-10542)
* Reduce contention getting instances of CompositeType (CASSANDRA-10433)
Merged from 2.1:
* Force encoding when computing statement ids (CASSANDRA-10755)
* Properly reject counters as map keys (CASSANDRA-10760)
* Fix the sstable-needs-cleanup check (CASSANDRA-10740)
* (cqlsh) Print column names before COPY operation (CASSANDRA-8935)

View File

@ -17,6 +17,7 @@
*/
package org.apache.cassandra.utils;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
/**
@ -50,7 +51,14 @@ public class MD5Digest
public static MD5Digest compute(String toHash)
{
return compute(toHash.getBytes());
try
{
return compute(toHash.getBytes("UTF-8"));
}
catch (UnsupportedEncodingException e)
{
throw new RuntimeException(e.getMessage());
}
}
@Override