diff options
author | Soumya Koduri <skoduri@redhat.com> | 2018-11-10 05:55:29 -0500 |
---|---|---|
committer | Shyamsundar Ranganathan <srangana@redhat.com> | 2018-12-26 16:59:17 +0000 |
commit | 6df227148c5651bc321b86c147ea20f90944d1be (patch) | |
tree | bee377f241331257fe4c1c9d22c381b96fa9784c /api | |
parent | 70e254333f952a670061632a16b897928b7e670d (diff) | |
download | glusterfs-6df227148c5651bc321b86c147ea20f90944d1be.tar.gz glusterfs-6df227148c5651bc321b86c147ea20f90944d1be.tar.xz glusterfs-6df227148c5651bc321b86c147ea20f90944d1be.zip |
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>
Diffstat (limited to 'api')
-rw-r--r-- | api/src/glfs-handleops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c index cb37de30e4..a8a04289b9 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; |