MJY-HUST commented on code in PR #2824: URL: https://github.com/apache/brpc/pull/2824#discussion_r1851983592
########## src/bthread/bthread.cpp: ########## @@ -400,18 +400,16 @@ int bthread_setconcurrency_by_tag(int num, bthread_tag_t tag) { auto tag_ngroup = c->concurrency(tag); auto add = num - tag_ngroup; - if (add > 0) { + if (add >= 0) { auto added = c->add_workers(add, tag); bthread::FLAGS_bthread_concurrency += added; return (add == added ? 0 : EPERM); Review Comment: 删了 -- 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