From 9be13aff89232c5ede11bdb37c49c2e5dca5d840 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 14 Oct 2010 12:29:11 +0000 Subject: cluster/distribute: add option 'use-readdirp' to force readdirp Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur Signed-off-by: Vijay Bellur BUG: 1508 (add-brick works but files are not distributed to newly added server) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1508 --- xlators/cluster/dht/src/dht-common.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/cluster/dht/src/dht-common.c') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index b0674f18e..82c3d6375 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -2314,6 +2314,9 @@ dht_readdir (call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size, } } + if (conf->use_readdirp) + op = GF_FOP_READDIRP; + dht_do_readdir (frame, this, fd, size, yoff, op); return 0; } -- cgit