Skip to content

Commit 3882eee

Browse files
baobaoyeyeajie
authored and
ajie
committed
issue=#1306:fix teracli scan null key (#1307)
1 parent f746225 commit 3882eee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/teracli_main.cc

+7
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,13 @@ int32_t ScanOp(Client* client, int32_t argc, std::string* argv, ErrorCode* err)
11231123

11241124
std::string start_rowkey = argv[3];
11251125
std::string end_rowkey = argv[4];
1126+
if (start_rowkey == "\"\"") {
1127+
start_rowkey = "";
1128+
}
1129+
if (end_rowkey == "\"\"") {
1130+
end_rowkey = "";
1131+
}
1132+
LOG(INFO) << "start_key=" << start_rowkey << " end_key=" << end_rowkey;
11261133
ScanDescriptor desc(start_rowkey);
11271134
desc.SetEnd(end_rowkey);
11281135
if (op == "scanallv") {

0 commit comments

Comments
 (0)