fix setting key length for old-style mapred api

patch by jbellis; reviewed by brandonwilliams for CASSANDRA-4534
This commit is contained in:
Jonathan Ellis 2012-08-13 14:22:36 -05:00
parent 8b6ce324bf
commit 197511f0b1
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
1.0.12
* (Hadoop) fix setting key length for old-style mapred api (CASSANDRA-4534)
* (Hadoop) fix iterating through a resultset consisting entirely
of tombstoned rows (CASSANDRA-4466)

View File

@ -416,7 +416,7 @@ public class ColumnFamilyRecordReader extends RecordReader<ByteBuffer, SortedMap
{
key.clear();
key.put(this.getCurrentKey());
key.rewind();
key.flip();
value.clear();
value.putAll(this.getCurrentValue());