summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client/src/client.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-04-05 04:03:43 +0000
committerVijay Bellur <vijay@gluster.com>2011-04-06 12:06:10 -0700
commit0b91f5be63813e6494283a8ac7d6e1e4348c9f13 (patch)
tree41d9ebad7b7c6cf692ee745406e3a06689aa175c /xlators/protocol/client/src/client.h
parentf49597e4786babadf6124390fa13460f66970e8b (diff)
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 <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@gluster.com> 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
Diffstat (limited to 'xlators/protocol/client/src/client.h')
-rw-r--r--xlators/protocol/client/src/client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/protocol/client/src/client.h b/xlators/protocol/client/src/client.h
index f3bc0073e0a..dfae8fb2c22 100644
--- a/xlators/protocol/client/src/client.h
+++ b/xlators/protocol/client/src/client.h
@@ -59,6 +59,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 {