From 6df227148c5651bc321b86c147ea20f90944d1be Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Sat, 10 Nov 2018 05:55:29 -0500 Subject: 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 --- api/src/glfs-handleops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit