Blob Blame History Raw
From 8294edc08de0b85eda741ba7d11e2639de8cdd84 Mon Sep 17 00:00:00 2001
From: N Balachandran <nbalacha@redhat.com>
Date: Tue, 30 May 2017 13:52:19 +0530
Subject: [PATCH 319/319] cluster/dht: Fix crash in dht_rmdir_cached_lookup_cbk

This was caused by an incorrect backport :
https://code.engineering.redhat.com/gerrit/#/c/104865

In dht_rmdir_cached_lookup_cbk
        if (is_last_call (this_call_cnt))
                dht_rmdir_do (readdirp_frame, this);
should be
        if (is_last_call (this_call_cnt))
                dht_rmdir_readdirp_do (readdirp_frame, this);

Change-Id: I7fc879a8d82e6bf2c8ad991ea79904783517d238
BUG: 1456696
Signed-off-by: N Balachandran <nbalacha@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/107638
Reviewed-by: Susant Palai <spalai@redhat.com>
---
 xlators/cluster/dht/src/dht-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index a97294c..be8552e 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -8134,7 +8134,7 @@ err:
          */
 
         if (is_last_call (this_call_cnt))
-                dht_rmdir_do (readdirp_frame, this);
+                dht_rmdir_readdirp_do (readdirp_frame, this);
 
         DHT_STACK_DESTROY (frame);
         return 0;
-- 
1.8.3.1