summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2018-11-10 05:55:29 -0500
committerShyamsundar Ranganathan <srangana@redhat.com>2018-12-26 16:59:17 +0000
commit6df227148c5651bc321b86c147ea20f90944d1be (patch)
treebee377f241331257fe4c1c9d22c381b96fa9784c
parent70e254333f952a670061632a16b897928b7e670d (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#1655532 Signed-off-by: Soumya Koduri <skoduri@redhat.com>
-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 cb37de30e4a..a8a04289b97 100644
--- a/api/src/glfs-handleops.c
+++ b/api/src/glfs-handleops.c
@@ -683,7 +683,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;