diff options
Diffstat (limited to 'xlators/cluster/ec')
-rw-r--r-- | xlators/cluster/ec/src/ec-heald.c | 5 | ||||
-rw-r--r-- | xlators/cluster/ec/src/ec.c | 4 | ||||
-rw-r--r-- | xlators/cluster/ec/src/ec.h | 1 |
3 files changed, 5 insertions, 5 deletions
diff --git a/xlators/cluster/ec/src/ec-heald.c b/xlators/cluster/ec/src/ec-heald.c index 95cff00b283..2e5098a3612 100644 --- a/xlators/cluster/ec/src/ec-heald.c +++ b/xlators/cluster/ec/src/ec-heald.c @@ -19,7 +19,6 @@ #include "syncop-utils.h" #include "protocol-common.h" -#define SHD_INODE_LRU_LIMIT 10 #define ASSERT_LOCAL(this, healer) \ do { \ if (!ec_shd_is_subvol_local (this, healer->subvol)) { \ @@ -513,10 +512,6 @@ ec_selfheal_daemon_init (xlator_t *this) ec = this->private; shd = &ec->shd; - this->itable = inode_table_new (SHD_INODE_LRU_LIMIT, this); - if (!this->itable) - goto out; - shd->index_healers = GF_CALLOC (sizeof(*shd->index_healers), ec->nodes, ec_mt_subvol_healer_t); diff --git a/xlators/cluster/ec/src/ec.c b/xlators/cluster/ec/src/ec.c index 06f814f9f5c..e93ae4f86fb 100644 --- a/xlators/cluster/ec/src/ec.c +++ b/xlators/cluster/ec/src/ec.c @@ -604,6 +604,10 @@ init (xlator_t *this) if (ec_assign_read_policy (ec, read_policy)) goto failed; + this->itable = inode_table_new (EC_SHD_INODE_LRU_LIMIT, this); + if (!this->itable) + goto failed; + if (ec->shd.iamshd) ec_selfheal_daemon_init (this); gf_msg_debug (this->name, 0, "Disperse translator initialized."); diff --git a/xlators/cluster/ec/src/ec.h b/xlators/cluster/ec/src/ec.h index 4ee7983b289..480125e35d3 100644 --- a/xlators/cluster/ec/src/ec.h +++ b/xlators/cluster/ec/src/ec.h @@ -24,6 +24,7 @@ #define EC_XATTR_DIRTY EC_XATTR_PREFIX"dirty" #define EC_VERSION_SIZE 2 +#define EC_SHD_INODE_LRU_LIMIT 10 typedef enum { EC_ROUND_ROBIN, |