diff --git a/src/java/org/apache/cassandra/utils/FBUtilities.java b/src/java/org/apache/cassandra/utils/FBUtilities.java
index <HASH>..<HASH> 100644
--- a/src/java/org/apache/cassandra/utils/FBUtilities.java
+++ b/src/java/org/apache/cassandra/utils/FBUtilities.java
@@ -489,9 +489,8 @@ public class FBUtilities
 
     public static String decodeToUTF8(ByteBuffer bytes) throws CharacterCodingException
     {
-        bytes.mark();
+        bytes = bytes.duplicate();
         String decoded  =  Charsets.UTF_8.newDecoder().decode(bytes).toString();
-        bytes.reset();
         return decoded;
     }
FBU.decodeToUtf8 duplicates the BB so other threads can trust its position. patch by gdusbabek, reviewed by jbellis. CASSANDRA-<I>


git-svn-id: <URL>