diff options
author | Amar Tumballi <amar@gluster.com> | 2010-09-02 07:26:54 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-02 06:31:50 -0700 |
commit | fed472201fdf17ef57ea9b823b9215a0b3f558ec (patch) | |
tree | e5c238dc0b2dd6291956728d51410eab566047b4 /xlators/cluster/dht/src/dht-common.c | |
parent | ee7f340f73eb2b61d5d1f6b881eede3b39432c9f (diff) |
cluster/distribute: add option 'use-readdirp' to force readdirp
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
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
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 3b4fe36185d..a1b48649417 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -2644,6 +2644,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; } |