[sheepdog] [PATCH v4 03/18] sheep: store.c don't include farm.h
Kai Zhang
kyle at zelin.io
Fri May 17 08:27:11 CEST 2013
Signed-off-by: Kai Zhang <kyle at zelin.io>
---
sheep/sheep_priv.h | 6 +++---
sheep/store.c | 1 -
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/sheep/sheep_priv.h b/sheep/sheep_priv.h
index 173cd55..a54956c 100644
--- a/sheep/sheep_priv.h
+++ b/sheep/sheep_priv.h
@@ -26,6 +26,9 @@
#include "rbtree.h"
#include "strbuf.h"
+#define HEX_LEN 40
+#define NAME_LEN HEX_LEN
+
struct client_info {
struct connection conn;
@@ -160,10 +163,7 @@ struct store_driver {
int (*update_epoch)(uint32_t epoch);
int (*purge_obj)(void);
/* Operations for snapshot */
- int (*snapshot)(const struct siocb *);
int (*cleanup)(void);
- int (*restore)(const struct siocb *);
- int (*get_snap_file)(struct siocb *);
};
int default_init(void);
diff --git a/sheep/store.c b/sheep/store.c
index 28e2ab7..4bcdaca 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -26,7 +26,6 @@
#include "sheep_priv.h"
#include "strbuf.h"
#include "util.h"
-#include "farm/farm.h"
char *obj_path;
char *epoch_path;
--
1.7.1
More information about the sheepdog
mailing list