mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
address part of comments
This commit is contained in:
parent
acc53431c7
commit
70f436483c
@ -56,7 +56,9 @@ namespace
|
||||
|
||||
bool checkIfRequestIncreaseMem(const Coordination::ZooKeeperRequestPtr & request)
|
||||
{
|
||||
if (request->getOpNum() == Coordination::OpNum::Create || request->getOpNum() == Coordination::OpNum::CreateIfNotExists)
|
||||
if (request->getOpNum() == Coordination::OpNum::Create
|
||||
|| request->getOpNum() == Coordination::OpNum::CreateIfNotExists
|
||||
|| request->getOpNum() == Coordination::OpNum::Set)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -76,6 +78,12 @@ bool checkIfRequestIncreaseMem(const Coordination::ZooKeeperRequestPtr & request
|
||||
memory_delta += create_req.bytesSize();
|
||||
break;
|
||||
}
|
||||
case Coordination::OpNum::Set:
|
||||
{
|
||||
Coordination::ZooKeeperSetRequest & set_req = dynamic_cast<Coordination::ZooKeeperSetRequest &>(*sub_zk_request);
|
||||
memory_delta += set_req.bytesSize();
|
||||
break;
|
||||
}
|
||||
case Coordination::OpNum::Remove:
|
||||
{
|
||||
Coordination::ZooKeeperRemoveRequest & remove_req = dynamic_cast<Coordination::ZooKeeperRemoveRequest &>(*sub_zk_request);
|
||||
|
Loading…
Reference in New Issue
Block a user