GitOrigin-RevId: 4acb5ef3939cafd4ece161f9def915ea8137129c
This commit is contained in:
levlam 2019-04-26 05:10:02 +03:00
parent fc363c5292
commit 4d6012ee7a

View File

@ -503,7 +503,7 @@ Result<string> TdDb::get_stats() {
sb << "\n";
return Status::OK();
};
auto run_kv_query = [&](Slice mask, Slice table = "common") {
auto run_kv_query = [&](Slice mask, Slice table = Slice("common")) {
return run_query(PSLICE() << "SELECT SUM(length(k)), SUM(length(v)), COUNT(*) FROM " << table << " WHERE k like '"
<< mask << "'",
PSLICE() << table << ":" << mask);