diff options
Diffstat (limited to 'rpc/rpc-lib/src/autoscale-threads.c')
| -rw-r--r-- | rpc/rpc-lib/src/autoscale-threads.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/rpc/rpc-lib/src/autoscale-threads.c b/rpc/rpc-lib/src/autoscale-threads.c index 4840fd4e971..a954ae7a27a 100644 --- a/rpc/rpc-lib/src/autoscale-threads.c +++ b/rpc/rpc-lib/src/autoscale-threads.c @@ -8,16 +8,15 @@ cases as published by the Free Software Foundation. */ -#include "gf-event.h" +#include <glusterfs/gf-event.h> #include "rpcsvc.h" void -rpcsvc_autoscale_threads (glusterfs_ctx_t *ctx, rpcsvc_t *rpc, int incr) +rpcsvc_autoscale_threads(glusterfs_ctx_t *ctx, rpcsvc_t *rpc, int incr) { - struct event_pool *pool = ctx->event_pool; - int thread_count = pool->eventthreadcount; + struct event_pool *pool = ctx->event_pool; + int thread_count = pool->eventthreadcount; - pool->auto_thread_count += incr; - (void) event_reconfigure_threads (pool, thread_count+incr); - rpcsvc_ownthread_reconf (rpc, pool->eventthreadcount); + pool->auto_thread_count += incr; + (void)gf_event_reconfigure_threads(pool, thread_count + incr); } |
