From 3882eee7e135200c45df5403f3eae7f191586b40 Mon Sep 17 00:00:00 2001 From: baobaoyeye Date: Fri, 18 Aug 2017 10:23:14 +0800 Subject: [PATCH] issue=#1306:fix teracli scan null key (#1307) --- src/teracli_main.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/teracli_main.cc b/src/teracli_main.cc index b53228d66..49c29dd6d 100644 --- a/src/teracli_main.cc +++ b/src/teracli_main.cc @@ -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") {