[master] 6460bff rename busyobj_state_e to boc_state_e

Poul-Henning Kamp phk at FreeBSD.org
Thu Jan 28 12:49:19 CET 2016


commit 6460bff24e0ed6aecfddaf35697c5cdf3737e400
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Jan 20 21:58:18 2016 +0000

    rename busyobj_state_e to boc_state_e

diff --git a/bin/varnishd/cache/cache.h b/bin/varnishd/cache/cache.h
index 23f9091..2de7093 100644
--- a/bin/varnishd/cache/cache.h
+++ b/bin/varnishd/cache/cache.h
@@ -381,7 +381,7 @@ struct storeobj {
 /*
  * The macro-states we expose outside the fetch code
  */
-enum busyobj_state_e {
+enum boc_state_e {
 	BOS_INVALID = 0,	/* don't touch (yet) */
 	BOS_REQ_DONE,		/* beresp.* can be examined */
 	BOS_STREAM,		/* beresp.* can be examined */
@@ -396,7 +396,7 @@ struct boc {
 	struct lock		mtx;
 	pthread_cond_t		cond;
 	void			*stevedore_priv;
-	enum busyobj_state_e	state;
+	enum boc_state_e	state;
 	uint8_t			*vary;
 
 	struct busyobj		*busyobj;
@@ -853,8 +853,8 @@ int ObjIterate(struct worker *, struct objcore *,
 int ObjGetSpace(struct worker *, struct objcore *, ssize_t *sz, uint8_t **ptr);
 void ObjExtend(struct worker *, struct objcore *, struct boc *, ssize_t l);
 ssize_t ObjWaitExtend(struct worker *, struct objcore *, struct boc *, ssize_t l);
-void ObjSetState(struct boc *, enum busyobj_state_e next);
-void ObjWaitState(struct boc *, enum busyobj_state_e want);
+void ObjSetState(struct boc *, enum boc_state_e next);
+void ObjWaitState(struct boc *, enum boc_state_e want);
 void ObjTrimStore(struct worker *, struct objcore *);
 void ObjTouch(struct worker *wrk, struct objcore *oc, double now);
 unsigned ObjGetXID(struct worker *, struct objcore *);
diff --git a/bin/varnishd/cache/cache_obj.c b/bin/varnishd/cache/cache_obj.c
index d168044..85cba50 100644
--- a/bin/varnishd/cache/cache_obj.c
+++ b/bin/varnishd/cache/cache_obj.c
@@ -155,7 +155,7 @@ ObjWaitExtend(struct worker *wrk, struct objcore *oc, struct boc *boc,
  */
 
 void
-ObjSetState(struct boc *boc, enum busyobj_state_e next)
+ObjSetState(struct boc *boc, enum boc_state_e next)
 {
 
 	CHECK_OBJ_NOTNULL(boc, BOC_MAGIC);
@@ -172,7 +172,7 @@ ObjSetState(struct boc *boc, enum busyobj_state_e next)
  */
 
 void
-ObjWaitState(struct boc *boc, enum busyobj_state_e want)
+ObjWaitState(struct boc *boc, enum boc_state_e want)
 {
 
 	CHECK_OBJ_NOTNULL(boc, BOC_MAGIC);



More information about the varnish-commit mailing list