summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorl17zhou <cynthia.zhou@nokia-sbell.com>2020-03-06 03:54:02 +0200
committerPranith Kumar Karampuri <pkarampu@redhat.com>2020-03-10 06:53:16 +0000
commit6c492274e923df1083b61bd46453e11171761632 (patch)
treeaffea228982dd56f9be5f63293a604754355e1e4 /xlators
parentc12a7d9bdc3887c4ed43f76a3c7886727a62d0bc (diff)
protocol/client: fallback to anonymous fd for fsync
Change-Id: I32f801206ce7fbd05aa693f44c2f140304f2e275 Fixes: bz#1810842
Diffstat (limited to 'xlators')
-rw-r--r--xlators/protocol/client/src/client-common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/protocol/client/src/client-common.c b/xlators/protocol/client/src/client-common.c
index db56b2dbd93..c112820e407 100644
--- a/xlators/protocol/client/src/client-common.c
+++ b/xlators/protocol/client/src/client-common.c
@@ -449,7 +449,8 @@ client_pre_fsync(xlator_t *this, gfs3_fsync_req *req, fd_t *fd, int32_t flags,
int64_t remote_fd = -1;
int op_errno = 0;
- CLIENT_GET_REMOTE_FD(this, fd, DEFAULT_REMOTE_FD, remote_fd, op_errno, out);
+ CLIENT_GET_REMOTE_FD(this, fd, FALLBACK_TO_ANON_FD, remote_fd, op_errno,
+ out);
req->fd = remote_fd;
req->data = flags;
@@ -2641,7 +2642,8 @@ client_pre_fsync_v2(xlator_t *this, gfx_fsync_req *req, fd_t *fd, int32_t flags,
int64_t remote_fd = -1;
int op_errno = 0;
- CLIENT_GET_REMOTE_FD(this, fd, DEFAULT_REMOTE_FD, remote_fd, op_errno, out);
+ CLIENT_GET_REMOTE_FD(this, fd, FALLBACK_TO_ANON_FD, remote_fd, op_errno,
+ out);
req->fd = remote_fd;
req->data = flags;