Skip to content

Commit

Permalink
issue=baidu#1306:fix teracli scan null key
Browse files Browse the repository at this point in the history
  • Loading branch information
baorenyi committed Aug 16, 2017
1 parent 0ea6884 commit b37d7f0
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 b37d7f0

Please sign in to comment.