switch translator added
switch translator is a wrapper around distribute to work for a pattern based scheduling. Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 409 (implement a switch scheduler) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=409
This commit is contained in:
parent
057c071403
commit
fc87b19f0b
@ -1,5 +1,5 @@
|
||||
|
||||
xlator_LTLIBRARIES = dht.la nufa.la
|
||||
xlator_LTLIBRARIES = dht.la nufa.la switch.la
|
||||
xlatordir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator/cluster
|
||||
|
||||
|
||||
@ -9,6 +9,7 @@ dht_common_source = dht-layout.c dht-helper.c dht-linkfile.c \
|
||||
dht_la_SOURCES = $(dht_common_source) dht.c
|
||||
|
||||
nufa_la_SOURCES = $(dht_common_source) nufa.c
|
||||
switch_la_SOURCES = $(dht_common_source) switch.c
|
||||
|
||||
dht_la_LDFLAGS = -module -avoidversion
|
||||
dht_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
|
||||
@ -16,6 +17,9 @@ dht_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
|
||||
nufa_la_LDFLAGS = -module -avoidversion
|
||||
nufa_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
|
||||
|
||||
switch_la_LDFLAGS = -module -avoidversion
|
||||
switch_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
|
||||
|
||||
noinst_HEADERS = dht-common.h dht-common.c
|
||||
|
||||
AM_CFLAGS = -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -D$(GF_HOST_OS) \
|
||||
|
@ -131,6 +131,8 @@ struct dht_conf {
|
||||
gf_boolean_t unhashed_sticky_bit;
|
||||
struct timeval last_stat_fetch;
|
||||
gf_lock_t layout_lock;
|
||||
void *private; /* Can be used by wrapper xlators over
|
||||
dht */
|
||||
};
|
||||
typedef struct dht_conf dht_conf_t;
|
||||
|
||||
|
1052
xlators/cluster/dht/src/switch.c
Normal file
1052
xlators/cluster/dht/src/switch.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user