diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-09 14:16:52 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-09 23:04:47 +0530 |
commit | 64cca26df51e929cc32b43148be64190c62ea793 (patch) | |
tree | f1df333b9678722bf08c779fbe3ea699e087918a /rpc/glfs-operations.c | |
parent | 9f570a3967c0a4ebbe35a04284181406faf8fe36 (diff) |
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 <prasanna.kalever@redhat.com>
Diffstat (limited to 'rpc/glfs-operations.c')
-rw-r--r-- | rpc/glfs-operations.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |