mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Merge pull request #32988 from JackyWoo/keeper_handler_remove_operation_when_response_sent
keeper handler should remove operation when response sent
This commit is contained in:
commit
084a1b5ac2
@ -557,6 +557,8 @@ void KeeperTCPHandler::updateStats(Coordination::ZooKeeperResponsePtr & response
|
||||
std::lock_guard lock(conn_stats_mutex);
|
||||
conn_stats.updateLatency(elapsed);
|
||||
}
|
||||
|
||||
operations.erase(response->xid);
|
||||
keeper_dispatcher->updateKeeperStatLatency(elapsed);
|
||||
|
||||
last_op.set(std::make_unique<LastOp>(LastOp{
|
||||
|
@ -93,7 +93,7 @@ private:
|
||||
|
||||
Poco::Timestamp established;
|
||||
|
||||
using Operations = std::map<Coordination::XID, Poco::Timestamp>;
|
||||
using Operations = std::unordered_map<Coordination::XID, Poco::Timestamp>;
|
||||
Operations operations;
|
||||
|
||||
LastOpMultiVersion last_op;
|
||||
|
Loading…
Reference in New Issue
Block a user