diff options
author | Amar Tumballi <amar@gluster.com> | 2010-02-05 01:38:29 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-02-06 08:44:09 -0800 |
commit | 137f94ed123b1c7c7ada541aaa599679e19888f6 (patch) | |
tree | fd1e9cc177cd77077bd516a39b8d0c8293ff72b3 /xlators/cluster/dht/src/dht-common.h | |
parent | c3005ce736d6bb3391e5f46930d355fc6b0f4d6e (diff) |
'lookup-unhashed' option of distribute should be 'auto' by default.
* Added 'auto' option, older boolean options works as they used to.
* This option should make 'create' rate faster, also handles
self-healing of linkfile properly in case of scaling to
more servers or filesystem is getting full.
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 584 (automatically configure 'lookup-unhashed' option)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=584
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.h')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h index f8a60b520..ca4a1d33e 100644 --- a/xlators/cluster/dht/src/dht-common.h +++ b/xlators/cluster/dht/src/dht-common.h @@ -25,6 +25,8 @@ #ifndef _DHT_H #define _DHT_H +#define GF_DHT_LOOKUP_UNHASHED_ON 1 +#define GF_DHT_LOOKUP_UNHASHED_AUTO 2 typedef int (*dht_selfheal_dir_cbk_t) (call_frame_t *frame, void *cookie, xlator_t *this, @@ -37,6 +39,7 @@ struct dht_layout { int gen; int type; int ref; /* use with dht_conf_t->layout_lock */ + int search_unhashed; struct { int err; /* 0 = normal -1 = dir exists and no xattr |