summaryrefslogtreecommitdiffstats
path: root/xlators/features/index
diff options
context:
space:
mode:
authorAnuradha <atalur@redhat.com>2013-11-25 14:48:23 +0530
committerVijay Bellur <vbellur@redhat.com>2013-11-28 08:47:26 -0800
commit3c5529332779ad6cd169370193978ac24974320d (patch)
tree253cc3547cbfc4eb447b72ea7f413603f5fe667e /xlators/features/index
parent72d3dde33bd12f4aea96d59097bef5df45672610 (diff)
features/index : Creation of indices directory as soon as brick is up.
Missing indices directory in the bricks leads to unwanted log messages. Therefore, indices directory needs to be created as soon as the brick comes up. This patch results in creation of indices/xattrop directory as required. Also includes a testcase to test the same. Change-Id: Ic2aedce00c6c1fb24929ca41f6085aed28709d2c BUG: 1034085 Signed-off-by: Anuradha <atalur@redhat.com> Reviewed-on: http://review.gluster.org/6343 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features/index')
-rw-r--r--xlators/features/index/src/index.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/features/index/src/index.c b/xlators/features/index/src/index.c
index 9253120f3f2..ed94aefad7c 100644
--- a/xlators/features/index/src/index.c
+++ b/xlators/features/index/src/index.c
@@ -1373,7 +1373,12 @@ init (xlator_t *this)
"worker thread, aborting");
goto out;
}
+
+ ret = index_dir_create (this, XATTROP_SUBDIR);
+ if (ret < 0)
+ goto out;
ret = 0;
+
out:
if (ret) {
if (cond_inited)