summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/unify
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-05-29 16:09:05 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-03 02:31:49 -0700
commit834efc91985b7a572e5acd9be463eb8ffdf3ba11 (patch)
treeadccfe34e5ce94013fd6477c5fccff5683a49d4a /xlators/cluster/unify
parent3c1fa49fb56c3a35f82bc25e4553431fe04f5231 (diff)
unify getdents count reduced to 512 (from 1024)
Thanks to Krishna <krishna (at) gluster.com> for pointing this out. When a unify self-heal of large directory (directory with lot of entries) is done, the getdents_cbk used to fail because of new limit of buffer size (128KB). Noticed that earlier it used to streach upto 4MB, hence the value 1024 worked fine. By reducing it to 512, noticed, we can fit in well within 128KB limit, and hence unify self-heal goes through. Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators/cluster/unify')
-rw-r--r--xlators/cluster/unify/src/unify.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/unify/src/unify.h b/xlators/cluster/unify/src/unify.h
index da2f1e93b29..965436db58e 100644
--- a/xlators/cluster/unify/src/unify.h
+++ b/xlators/cluster/unify/src/unify.h
@@ -35,7 +35,7 @@
#define ZR_UNIFY_BG_SELF_HEAL 2
/* Sometimes one should use completely random numbers.. its good :p */
-#define UNIFY_SELF_HEAL_GETDENTS_COUNT 1024
+#define UNIFY_SELF_HEAL_GETDENTS_COUNT 512
#define NS(xl) (((unify_private_t *)xl->private)->namespace)