mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Update main.cpp
This commit is contained in:
parent
e1b11c786b
commit
3a8d7e9a48
@ -31,7 +31,7 @@ int main(int argc, char ** argv)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool dump_ctime = (options.count("ctime")) ? true : false;
|
bool dump_ctime = options.count("ctime");
|
||||||
|
|
||||||
zkutil::ZooKeeperPtr zookeeper = std::make_shared<zkutil::ZooKeeper>(options.at("address").as<std::string>());
|
zkutil::ZooKeeperPtr zookeeper = std::make_shared<zkutil::ZooKeeper>(options.at("address").as<std::string>());
|
||||||
|
|
||||||
@ -83,9 +83,8 @@ int main(int argc, char ** argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::cout << it->first << '\t' << response.stat.numChildren << '\t' << response.stat.dataLength;
|
std::cout << it->first << '\t' << response.stat.numChildren << '\t' << response.stat.dataLength;
|
||||||
if (dump_ctime) {
|
if (dump_ctime)
|
||||||
std::cout << '\t' << response.stat.ctime;
|
std::cout << '\t' << response.stat.ctime;
|
||||||
}
|
|
||||||
std::cout << '\n';
|
std::cout << '\n';
|
||||||
|
|
||||||
for (const auto & name : response.names)
|
for (const auto & name : response.names)
|
||||||
|
Loading…
Reference in New Issue
Block a user