summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2018-11-10 05:55:29 -0500
committerShyamsundar Ranganathan <srangana@redhat.com>2018-11-29 15:34:50 +0000
commit5bfb65ef69ef2e1095bc1d5ba71396c7dd167adc (patch)
treed3459bd68ab0043b544430e9877d73e687e37bf5
parentc309e41f7750a1730c381f2c0a513507ba08dae4 (diff)
gfapi: Send fop_attr dict as part of syncop_open
Leaseid (stored in thread locals) is sent to server via xdata. This dict variable is set but not passed as argument in glfs_h_open(). Fixed the same. Change-Id: Idd2f8a0ec184b4b6b1ad1e6e5d75df551c36a96d updates: bz#1651323 Signed-off-by: Soumya Koduri <skoduri@redhat.com> (cherry picked from commit 04be5463b20ababc29942fa967017e763d0ae2af)
-rw-r--r--api/src/glfs-handleops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c
index 7e9f4c5c915..6a020ca7ab6 100644
--- a/api/src/glfs-handleops.c
+++ b/api/src/glfs-handleops.c
@@ -699,7 +699,7 @@ pub_glfs_h_open(struct glfs *fs, struct glfs_object *object, int flags)
if (ret)
gf_msg_debug("gfapi", 0, "Getting leaseid from thread failed");
- ret = syncop_open(subvol, &loc, flags, glfd->fd, NULL, NULL);
+ ret = syncop_open(subvol, &loc, flags, glfd->fd, fop_attr, NULL);
DECODE_SYNCOP_ERR(ret);
glfd->fd->flags = flags;