From 322ed6812d9a5b3c975b5c949ff5adfd16d40eb4 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 5 Apr 2011 04:00:26 +0000 Subject: protocol/client: make sure to send only genuine events up to parent that way parent notify logic is fine. also, remove 'xlator_notify()' call in code, instead use 'default_notify()' Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 2584 (Inode number changes on a directory when one of subvolumes is down in replicate) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2584 --- xlators/protocol/client/src/client.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/protocol/client/src/client.h') diff --git a/xlators/protocol/client/src/client.h b/xlators/protocol/client/src/client.h index 221ba542e..21451b37e 100644 --- a/xlators/protocol/client/src/client.h +++ b/xlators/protocol/client/src/client.h @@ -60,6 +60,10 @@ typedef struct clnt_conf { connection is established */ gf_lock_t rec_lock; int skip_notify; + + int last_sent_event; /* Flag used to make sure we are + not repeating the same event + which was sent earlier */ } clnt_conf_t; typedef struct _client_fd_ctx { -- cgit