This is an automated email from the ASF dual-hosted git repository.
jiashunzhu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push:
new 9ce0402 chan resize +1
new 60d6a2f Merge pull request #1422 from guodongxiaren/fix_rpc_replay
9ce0402 is described below
commit 9ce0402ba0424727e6c4b6cca5e25d66ea72202f
Author: guodongxiaren <[email protected]>
AuthorDate: Thu Jun 3 21:25:08 2021 +0800
chan resize +1
---
tools/rpc_replay/rpc_replay.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/rpc_replay/rpc_replay.cpp b/tools/rpc_replay/rpc_replay.cpp
index eddec0e..7e0adc3 100644
--- a/tools/rpc_replay/rpc_replay.cpp
+++ b/tools/rpc_replay/rpc_replay.cpp
@@ -77,7 +77,7 @@ int ChannelGroup::Init() {
max_protocol_size = std::max(max_protocol_size,
(size_t)protocols[i].first);
}
- _chans.resize(max_protocol_size);
+ _chans.resize(max_protocol_size + 1);
for (size_t i = 0; i < protocols.size(); ++i) {
if (protocols[i].second.support_client() &&
protocols[i].second.support_server()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]