From 64cca26df51e929cc32b43148be64190c62ea793 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Thu, 9 Feb 2017 14:16:52 +0530 Subject: gluster-block: threadify remote requests Before: ------ rpc clnt_call() is synchronous, for a multipath request each remote call has to wait until the previous remote call returns i,e each remote op happens in serial. After: ----- As we now threadify the remote calls, all the remote call's happens in parallel shrinking the overall latency for create and delete requests. Signed-off-by: Prasanna Kumar Kalever --- rpc/glfs-operations.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rpc/glfs-operations.c') diff --git a/rpc/glfs-operations.c b/rpc/glfs-operations.c index 4a7e081..9d687a4 100644 --- a/rpc/glfs-operations.c +++ b/rpc/glfs-operations.c @@ -212,9 +212,9 @@ blockFreeMetaInfo(MetaInfo *info) static void blockStuffMetaInfo(MetaInfo *info, char *line) { - char* tmp = strdup(line); - char* opt = strtok(tmp,":"); - int Flag = 0; + char *tmp = strdup(line); + char *opt = strtok(tmp, ":"); + bool Flag = 0; size_t i; -- cgit