update error policy

This commit is contained in:
Mikhail Artemenko 2024-08-28 14:53:40 +00:00
parent 7f613563e1
commit 4d486f1a74

View File

@ -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;