summaryrefslogtreecommitdiffstats
path: root/rpc/block_svc_routines.c
diff options
context:
space:
mode:
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-02-07 14:36:58 +0530
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-02-07 14:36:58 +0530
commit144a22cd9f547b54a712e0a78cd698edae12dc23 (patch)
treea148dd760ba1d21a9fa84a725930970da853dad8 /rpc/block_svc_routines.c
parent23b12455796ec453ca35e94ab49e7629d7f9aced (diff)
gfapi: unify calls to glfs_init and friends
There were two glfs_init(and friends) invocations per op (create & delete). This patch just unifies those calls (since they anyway belong to same volume) Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'rpc/block_svc_routines.c')
-rw-r--r--rpc/block_svc_routines.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/block_svc_routines.c b/rpc/block_svc_routines.c
index 91ad630..e2ad31b 100644
--- a/rpc/block_svc_routines.c
+++ b/rpc/block_svc_routines.c
@@ -376,7 +376,7 @@ glusterBlockCleanUp(struct glfs *glfs, char *blockname,
}
if (cleanupsuccess == info->nhosts) {
- if (glusterBlockDeleteEntry(info->volume, info->gbid)) {
+ if (glusterBlockDeleteEntry(glfs, info->volume, info->gbid)) {
LOG("mgmt", GB_LOG_ERROR, "%s volume: %s host: %s",
FAILED_DELETING_FILE, info->volume, "localhost");
}
@@ -467,7 +467,7 @@ block_create_cli_1_svc(blockCreateCli *blk, struct svc_req *rqstp)
"ENTRYCREATE: INPROGRESS\n",
blk->volume, gbid, blk->size, blk->mpath);
- ret = glusterBlockCreateEntry(blk, gbid);
+ ret = glusterBlockCreateEntry(glfs, blk, gbid);
if (ret) {
GB_METAUPDATE_OR_GOTO(tgmfd, blk->block_name, blk->volume, ret,
exist, "ENTRYCREATE: FAIL\n");