Skip to content

Commit

Permalink
issue=#1306:fix teracli scan null key (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
baobaoyeye authored and ajie committed Aug 18, 2017
1 parent f746225 commit 3882eee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/teracli_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,13 @@ int32_t ScanOp(Client* client, int32_t argc, std::string* argv, ErrorCode* err)

std::string start_rowkey = argv[3];
std::string end_rowkey = argv[4];
if (start_rowkey == "\"\"") {
start_rowkey = "";
}
if (end_rowkey == "\"\"") {
end_rowkey = "";
}
LOG(INFO) << "start_key=" << start_rowkey << " end_key=" << end_rowkey;
ScanDescriptor desc(start_rowkey);
desc.SetEnd(end_rowkey);
if (op == "scanallv") {
Expand Down

0 comments on commit 3882eee

Please sign in to comment.