Merge branch 'cassandra-2.0' into cassandra-2.1

This commit is contained in:
Aleksey Yeschenko 2015-03-20 12:35:26 +03:00
commit 5cf61e718f
1 changed files with 10 additions and 0 deletions

View File

@ -46,6 +46,16 @@ public class DropIndexStatement extends SchemaAlteringStatement
this.ifExists = ifExists;
}
// We don't override CFStatement#columnFamily as this'd change the
// protocol for returned events when we drop an index. We need it
// to return null so that SchemaMigrations remain a keyspace,
// rather than table, level event (see SchemaAlteringStatement#execute).
public String getColumnFamily() throws InvalidRequestException
{
CFMetaData cfm = findIndexedCF();
return cfm == null ? null : cfm.cfName;
}
public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException
{
CFMetaData cfm = findIndexedCF();