diff options
author | Mohit Agrawal <moagrawa@redhat.com> | 2020-09-22 17:21:26 +0530 |
---|---|---|
committer | Mohit Agrawal <moagrawa@redhat.com> | 2020-09-23 13:40:51 +0530 |
commit | 168142748d4f676071d9253bb536aec734a4a0da (patch) | |
tree | 3ceb665a98962fa0e7a8c273824afda9a62f3764 /xlators/nfs/server/src/mount3udp_svc.c | |
parent | eedddaa7ec13f951180ff448c62ffb413913bbd7 (diff) |
nfs: test case bugs_nfs_bug-1116503.t is crashed
test case is crashed because GF_ASSERT is failing
in gf_mem_set_acct_info function due to access global
xlator instead of accessing nfs xlator.To avoid the
crash pass nfsx at the time of calling nsm_thread
to set the THIS.
Fixes: #1506
Change-Id: Ifd8afcdf39578aa44332d1b79744a4e9910fe7c6
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
Diffstat (limited to 'xlators/nfs/server/src/mount3udp_svc.c')
-rw-r--r-- | xlators/nfs/server/src/mount3udp_svc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/mount3udp_svc.c b/xlators/nfs/server/src/mount3udp_svc.c index 0688779eb65..1a2b0f85453 100644 --- a/xlators/nfs/server/src/mount3udp_svc.c +++ b/xlators/nfs/server/src/mount3udp_svc.c @@ -216,7 +216,7 @@ mount3udp_thread(void *argv) GF_ASSERT(nfsx); - glusterfs_this_set(nfsx); + THIS = nfsx; transp = svcudp_create(RPC_ANYSOCK); if (transp == NULL) { |