summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/protocol/client/src/client-rpc-fops.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xlators/protocol/client/src/client-rpc-fops.c b/xlators/protocol/client/src/client-rpc-fops.c
index 15ffeb9aade..0d80443c93a 100644
--- a/xlators/protocol/client/src/client-rpc-fops.c
+++ b/xlators/protocol/client/src/client-rpc-fops.c
@@ -5536,10 +5536,10 @@ client3_3_inodelk (call_frame_t *frame, xlator_t *this,
if (!(args->loc && args->loc->inode))
goto unwind;
- if (!gf_uuid_is_null (args->loc->inode->gfid))
- memcpy (req.gfid, args->loc->inode->gfid, 16);
+ if (!gf_uuid_is_null (args->loc->gfid))
+ memcpy (req.gfid, args->loc->gfid, 16);
else
- memcpy (req.gfid, args->loc->gfid, 16);
+ memcpy (req.gfid, args->loc->inode->gfid, 16);
GF_ASSERT_AND_GOTO_WITH_ERROR (this->name,
!gf_uuid_is_null (*((uuid_t*)req.gfid)),
@@ -5699,10 +5699,10 @@ client3_3_entrylk (call_frame_t *frame, xlator_t *this,
if (!(args->loc && args->loc->inode))
goto unwind;
- if (!gf_uuid_is_null (args->loc->inode->gfid))
- memcpy (req.gfid, args->loc->inode->gfid, 16);
+ if (!gf_uuid_is_null (args->loc->gfid))
+ memcpy (req.gfid, args->loc->gfid, 16);
else
- memcpy (req.gfid, args->loc->gfid, 16);
+ memcpy (req.gfid, args->loc->inode->gfid, 16);
GF_ASSERT_AND_GOTO_WITH_ERROR (this->name,
!gf_uuid_is_null (*((uuid_t*)req.gfid)),