Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data_substrate
5 changes: 4 additions & 1 deletion src/redis_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,10 @@ bool RedisServiceImpl::Start(brpc::Server &brpc_server)
redis_cmd_current_rounds_.resize(core_num_);
for (auto &vec : redis_cmd_current_rounds_)
{
vec.resize(command_types.size() + 10, 1);
// Indexed by RedisCommandType, whose values are pinned with gaps
// (optional commands occupy 176-186), so size by the enum range
// rather than the number of registered commands.
vec.resize(256, 1);
}

// The metrics registry and redis_meter are already created by
Expand Down
Loading