summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/afr/src/afr.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c
index 5d5e536ff60..c007ffef9f8 100644
--- a/xlators/cluster/afr/src/afr.c
+++ b/xlators/cluster/afr/src/afr.c
@@ -579,7 +579,7 @@ out:
return ret;
}
-int
+void
fini(xlator_t *this)
{
afr_private_t *priv = NULL;
@@ -595,7 +595,7 @@ fini(xlator_t *this)
afr_priv_destroy(priv);
// if (this->itable);//I don't see any destroy func
- return 0;
+ return;
}
struct xlator_fops fops = {
@@ -1166,3 +1166,18 @@ struct volume_options options[] = {
"and configuring it doesn't have any effect"},
{.key = {NULL}},
};
+
+xlator_api_t xlator_api = {
+ .init = init,
+ .fini = fini,
+ .notify = notify,
+ .reconfigure = reconfigure,
+ .mem_acct_init = mem_acct_init,
+ .op_version = {1}, /* Present from the initial version */
+ .dumpops = &dumpops,
+ .fops = &fops,
+ .cbks = &cbks,
+ .options = options,
+ .identifier = "replicate",
+ .category = GF_MAINTAINED,
+};