diff options
author | Poornima G <pgurusid@redhat.com> | 2016-07-18 21:19:34 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2016-08-27 05:48:36 -0700 |
commit | b85c648a6b236ca03494cb61b97e2e703be0950c (patch) | |
tree | 9da4f725da47c5061d973dc3c479119b28b8ed53 /xlators/cluster/dht/src/dht.c | |
parent | 3f5273e19af2eaa7bc33c6abaf6b10850f97dcc0 (diff) |
dht: Implement ipc fop
ipc is used by md-cache to communicate the list of xattrs that
it is caching, to the upcall xlator. Hence implement this in
dht, such that it winds to all the bricks if the ipc op is
GF_IPC_MDC_TARGET_UPCALL. The ips should not fail if any of
the bricks is down, as md-cache will replay the ipc late when
the brick comes back up.
Change-Id: Ica551a550c04cbb1240c0d211fe831c2e5eb6017
BUG: 1211863
Signed-off-by: Poornima G <pgurusid@redhat.com>
Reviewed-on: http://review.gluster.org/15225
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht.c')
-rw-r--r-- | xlators/cluster/dht/src/dht.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht.c b/xlators/cluster/dht/src/dht.c index afdfd5c80ea..90962636d18 100644 --- a/xlators/cluster/dht/src/dht.c +++ b/xlators/cluster/dht/src/dht.c @@ -20,6 +20,7 @@ class_methods_t class_methods = { }; struct xlator_fops fops = { + .ipc = dht_ipc, .lookup = dht_lookup, .mknod = dht_mknod, .create = dht_create, |