RVH should use RC.getRow for correctness and maintainability (in particular the path for get_columns_since was missing). patch by Jun Rao; reviewed by jbellis for #93

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@767315 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2009-04-21 22:18:08 +00:00
parent 0f7e1c3012
commit 478f0bef14
1 changed files with 1 additions and 16 deletions

View File

@ -76,22 +76,7 @@ public class ReadVerbHandler implements IVerbHandler
Table table = Table.open(readCommand.table);
Row row = null;
long start = System.currentTimeMillis();
if( readCommand.columnFamilyColumn == null )
row = table.get(readCommand.key);
else
{
if(readCommand.columnNames.size() == 0)
{
if(readCommand.count > 0 && readCommand.start >= 0)
row = table.getRow(readCommand.key, readCommand.columnFamilyColumn, readCommand.start, readCommand.count);
else
row = table.getRow(readCommand.key, readCommand.columnFamilyColumn);
}
else
{
row = table.getRow(readCommand.key, readCommand.columnFamilyColumn, readCommand.columnNames);
}
}
row = readCommand.getRow(table);
logger_.info("getRow() TIME: " + (System.currentTimeMillis() - start) + " ms.");
start = System.currentTimeMillis();
ReadResponse readResponse = null;