summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
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:38:22 -0700
commit7c9b551398a660f31358feab366e5ce665a8f372 (patch)
tree2ff4be68bab08887de8f9291fcb693aa81108d1c /xlators/cluster
parent9ccb6f74410a20eaa831ecc9e4601fcb724e63d5 (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')
-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 da2f1e93b..965436db5 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)