mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
update error policy
This commit is contained in:
parent
7f613563e1
commit
4d486f1a74
@ -693,10 +693,6 @@ public:
|
||||
Coordination::Stat src_stat;
|
||||
String data = client->zookeeper->get(src, &src_stat);
|
||||
|
||||
// allow to copy only persistent nodes
|
||||
if (src_stat.ephemeralOwner)
|
||||
throw std::runtime_error("TODO: it is possible to copy only persistent nodes");
|
||||
|
||||
Coordination::Requests ops{
|
||||
zkutil::makeCheckRequest(src, src_stat.version),
|
||||
zkutil::makeCreateRequest(dest, data, zkutil::CreateMode::Persistent), // Do we need to copy ACLs here?
|
||||
@ -714,8 +710,6 @@ public:
|
||||
return true;
|
||||
case Coordination::Error::ZBADVERSION:
|
||||
return false;
|
||||
case Coordination::Error::ZNODEEXISTS:
|
||||
throw std::runtime_error("TODO: Destination path already exists");
|
||||
default:
|
||||
zkutil::KeeperMultiException::check(code, ops, responses);
|
||||
}
|
||||
@ -758,7 +752,6 @@ void CPCommand::execute(const ASTKeeperQuery * query, KeeperClient * client) con
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
bool MVCommand::parse(IParser::Pos & pos, std::shared_ptr<ASTKeeperQuery> & node, Expected & expected) const
|
||||
{
|
||||
String src_path;
|
||||
|
Loading…
Reference in New Issue
Block a user