diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2010-09-15 10:53:00 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-16 06:51:00 -0700 |
commit | 47bc630dca589235d7c10e2748cebaa5e419d5d7 (patch) | |
tree | 2827708b126775caf2543c1f868729e909a9b99d /xlators/protocol/server/src/server-resolve.c | |
parent | a2277a40ff8d19272abe11d9bf0257535ae0856c (diff) |
server: Check gfid presence using uuid_is_nullv3.1.0qa25
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1608 (stat fop on dir returns ENOENT from server-resolution path)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1608
Diffstat (limited to 'xlators/protocol/server/src/server-resolve.c')
-rw-r--r-- | xlators/protocol/server/src/server-resolve.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/protocol/server/src/server-resolve.c b/xlators/protocol/server/src/server-resolve.c index e7c1cc85fd5..8489bc4142d 100644 --- a/xlators/protocol/server/src/server-resolve.c +++ b/xlators/protocol/server/src/server-resolve.c @@ -150,9 +150,9 @@ resolve_deep_continue (call_frame_t *frame) resolve->op_ret = 0; resolve->op_errno = 0; - if (resolve->pargfid) + if (!uuid_is_null (resolve->pargfid)) ret = resolve_entry_simple (frame); - else if (resolve->gfid) + else if (!uuid_is_null (resolve->gfid)) ret = resolve_inode_simple (frame); else if (resolve->path) ret = resolve_path_simple (frame); |