Split out chunk back-end
PATCH 4/8 Split out chunk back-end
This patch is careful not to change anything but the strictly necessary parts in the actual code.
Signed-off-by Pete Zaitcev <[email protected]>
--- server/Makefile.am | 3 server/stor_chunk.c | 409 ++++++++++++++++++++++++++++++++++++++++++ server/storage.c | 377 -------------------------------------- server/tabled.h | 3 4 files changed, 414 insertions(+), 378 deletions(-)
commit 1eaf18ff243a2d4e291d0af2f13ec425ab0757c0
Author: Pete Zaitcev <[email protected]> Date: Thu Nov 11 16:30:52 2010 -0700
Split out the chunk-specific part, byte for byte, no changes.
server/Makefile.am +2 -1
@@ -5,7 +5,8 @@ sbin_PROGRAMS = tabled tdbadm tabled_SOURCES = tabled.h \ bucket.c cldu.c config.c metarep.c object.c replica.c \ - server.c status.c storage.c storparse.c util.c + server.c status.c storage.c storparse.c \ + stor_chunk.c util.c tabled_LDADD = ../lib/libtdb.a \ @HAIL_LIBS@ @PCRE_LIBS@ @GLIB_LIBS@ \ @CRYPTO_LIBS@ @DB4_LIBS@ @EVENT_LIBS@ @SSL_LIBS@
server/stor_chunk.c new file +409 -0
409 lines not on this page · raw message
server/storage.c +0 -377
398 lines not on this page · raw message
server/tabled.h +3 -0
@@ -497,6 +497,9 @@ extern bool stor_status(struct client *cli, GList *content);/* storparse.c */ extern void stor_parse (char *fname,const char *text,size_t len); +/* stor_chunk.c */ +extern struct st_node_ops stor_ops_chunk; +/* replica.c */ extern void rep_init (struct event_base *ev_base);extern void rep_start (void );