From 78dee45ef829296dbcb4cf28e06feb8e25458c91 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 6 Sep 2011 13:56:03 +0530 Subject: debug/io-stats: Allow multiple children in graph Change-Id: Ie4fb75d8000ff95daa8bf9f6757926822de28a65 BUG: 2458 Reviewed-on: http://review.gluster.com/401 Reviewed-by: Vijay Bellur Tested-by: Gluster Build System --- xlators/debug/io-stats/src/io-stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/debug') diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c index 6ac7a0634..7057e3d6b 100644 --- a/xlators/debug/io-stats/src/io-stats.c +++ b/xlators/debug/io-stats/src/io-stats.c @@ -2400,9 +2400,9 @@ init (xlator_t *this) if (!this) return -1; - if (!this->children || this->children->next) { + if (!this->children) { gf_log (this->name, GF_LOG_ERROR, - "io_stats translator requires one subvolume"); + "io_stats translator requires atleast one subvolume"); return -1; } -- cgit