From 3c5529332779ad6cd169370193978ac24974320d Mon Sep 17 00:00:00 2001 From: Anuradha Date: Mon, 25 Nov 2013 14:48:23 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/6343 Tested-by: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Reviewed-by: Vijay Bellur --- xlators/features/index/src/index.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators') 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) -- cgit