MJY-HUST opened a new pull request, #2730:
URL: https://github.com/apache/brpc/pull/2730

   ### What problem does this PR solve?
   
   Issue Number:
   https://github.com/apache/brpc/issues/2542
   
   Problem Summary:
   升级到1.10.0版本后,重复解析两次 gflags 后,flags bthread_concurrency_by_tag 
validate会报错的问题又复现了。
   是由于在默认配置下,第二次解析gflags时,num = 0,tag_ngroup = 
FALGS_bthread_concurrency。两者不想等导致返回了EPERM。
   
gflags的默认配置下,只有一个tag且等于0,bthread_concurrency_by_tag的默认值应该设置成等于bthread_concurrency的默认值,这样也比较合理。
   
![6M4`0}5K%XVK@V@0(DNK71K](https://github.com/user-attachments/assets/73ddc063-546c-49aa-abdc-11b7fa727311)
   
   ### What is changed and the side effects?
   
   Changed:
   
   Side effects:
   - Performance effects(性能影响):
   
   - Breaking backward compatibility(向后兼容性): 
   
   ---
   ### Check List:
   - Please make sure your changes are compilable(请确保你的更改可以通过编译).
   - When providing us with a new feature, it is best to add related 
tests(如果你向我们增加一个新的功能, 请添加相关测试).
   - Please follow [Contributor Covenant Code of 
Conduct](../../master/CODE_OF_CONDUCT.md).(请遵循贡献者准则).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to