path: root/xlators/features/shard/src
diff options
authorMohammed Rafi KC <>2019-06-24 15:49:04 +0530
committerPranith Kumar Karampuri <>2019-06-27 06:04:05 +0000
commite8f8d16fc4b8e5be48f4d7c9ff9d170934ffb7fc (patch)
treedbe4c8ffca1e880f397fe3797208c7947a6e6a97 /xlators/features/shard/src
parentf782881f825efcd4ab3b74209c1c7aca3796023b (diff)
graph/shd: Use glusterfs_graph_deactivate to free the xl rec
We were using glusterfs_graph_fini to free the xl rec from glusterfs_process_volfp as well as glusterfs_graph_cleanup. Instead we can use glusterfs_graph_deactivate, which is does fini as well as other common rec free. Change-Id: Ie4a5f2771e5254aa5ed9f00c3672a6d2cc8e4bc1 Updates: bz#1716695 Signed-off-by: Mohammed Rafi KC <>
Diffstat (limited to 'xlators/features/shard/src')
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
index 6e78e967214..2b6b2513019 100644
--- a/xlators/features/shard/src/shard.c
+++ b/xlators/features/shard/src/shard.c
@@ -6788,6 +6788,9 @@ fini(xlator_t *this)
GF_VALIDATE_OR_GOTO("shard", this, out);
+ /*Itable was not created by shard, hence setting to NULL.*/
+ this->itable = NULL;
this->local_pool = NULL;