Skip to contentSkip to conversation

Split out chunk back-end

PATCH In review Pete Zaitcev 1 participant 1 message Nov 29, 2010

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 5b53a0a..52beec4 100644
@@ -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
index 6ab32a3..27bc7c1 100644
@@ -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);