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