From 84924ee0ef7cb557c54a9d467364ded86b34f40d Mon Sep 17 00:00:00 2001 From: Poornima G Date: Tue, 17 May 2016 01:22:37 -0400 Subject: leases: Send "this" as cookie to the timer handler Issue: timer-wheel implementation doesn't set the THIS to point to the xlator who registered the timer, before calling the handler. Hence referencing to THIS is any timer handler will point to the global_xlator. Fix: This is a bug from the timer wheel, but until that gets fixed passing "this" as a cookie to the timer handler. Change-Id: Ife1be56dc100372f9211e8fc7a885ac717cbcf47 BUG: 1319992 Signed-off-by: Poornima G Reviewed-on: http://review.gluster.org/14370 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Raghavendra Talur Reviewed-by: Pranith Kumar Karampuri --- xlators/features/leases/src/leases-mem-types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/features/leases/src/leases-mem-types.h') diff --git a/xlators/features/leases/src/leases-mem-types.h b/xlators/features/leases/src/leases-mem-types.h index 055da45be5d..d1a59c1db2e 100644 --- a/xlators/features/leases/src/leases-mem-types.h +++ b/xlators/features/leases/src/leases-mem-types.h @@ -22,6 +22,7 @@ enum gf_leases_mem_types_ { gf_leases_mt_lease_inode_ctx_t, gf_leases_mt_lease_id_entry_t, gf_leases_mt_fop_stub_t, + gf_leases_mt_timer_data_t, gf_leases_mt_end }; #endif -- cgit