summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client/src/client.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-04-05 04:00:26 +0000
committerVijay Bellur <vijay@gluster.com>2011-04-06 10:51:52 -0700
commit322ed6812d9a5b3c975b5c949ff5adfd16d40eb4 (patch)
treeab0d0c65e00f4a7da570338c79ad9a54fcbf55c5 /xlators/protocol/client/src/client.h
parentb8ae8d95a814d9329c34e6bf3d705c0fc07115b7 (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 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 {