Fix bug with super columns where row cache is not updated

patch by slebresne; reviewed by jbellis for CASSANDRA-4190
This commit is contained in:
Sylvain Lebresne 2012-04-26 16:32:06 +02:00
parent cb67c98d57
commit eb9f96146e
2 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@
* (CLI) properly handle quotes in create/update keyspace commands (CASSANDRA-4129)
* Avoids possible deadlock during bootstrap (CASSANDRA-4159)
* fix stress tool that hangs forever on timeout or error (CASSANDRA-4128)
* Fix super columns bug where cache is not updated (CASSANDRA-4190)
1.0.9

View File

@ -141,7 +141,7 @@ public class ColumnFamily extends AbstractColumnContainer
}
/**
* Same as addAll() but do a cloneMeShallow of SuperColumn if necessary to
* Same as addAll() but do a cloneMe of SuperColumn if necessary to
* avoid keeping references to the structure (see #3957).
*/
public void addAllWithSCCopy(ColumnFamily cf, Allocator allocator)
@ -150,7 +150,7 @@ public class ColumnFamily extends AbstractColumnContainer
{
for (IColumn c : cf)
{
columns.addColumn(((SuperColumn)c).cloneMeShallow(), allocator);
columns.addColumn(((SuperColumn)c).cloneMe(), allocator);
}
delete(cf);
}