Commit 4ddf7012 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Rename the 'boc' variable to 'busy' to avoid misunderstandings

now that we have a struct boc.
parent e25593a2
...@@ -355,7 +355,7 @@ cnt_fetch(struct worker *wrk, struct req *req) ...@@ -355,7 +355,7 @@ cnt_fetch(struct worker *wrk, struct req *req)
static enum req_fsm_nxt static enum req_fsm_nxt
cnt_lookup(struct worker *wrk, struct req *req) cnt_lookup(struct worker *wrk, struct req *req)
{ {
struct objcore *oc, *boc; struct objcore *oc, *busy;
enum lookup_e lr; enum lookup_e lr;
int had_objhead = 0; int had_objhead = 0;
...@@ -370,7 +370,7 @@ cnt_lookup(struct worker *wrk, struct req *req) ...@@ -370,7 +370,7 @@ cnt_lookup(struct worker *wrk, struct req *req)
AZ(req->objcore); AZ(req->objcore);
if (req->hash_objhead) if (req->hash_objhead)
had_objhead = 1; had_objhead = 1;
lr = HSH_Lookup(req, &oc, &boc, lr = HSH_Lookup(req, &oc, &busy,
req->esi_level == 0 ? 1 : 0, req->esi_level == 0 ? 1 : 0,
req->hash_always_miss ? 1 : 0 req->hash_always_miss ? 1 : 0
); );
...@@ -386,10 +386,10 @@ cnt_lookup(struct worker *wrk, struct req *req) ...@@ -386,10 +386,10 @@ cnt_lookup(struct worker *wrk, struct req *req)
if (had_objhead) if (had_objhead)
VSLb_ts_req(req, "Waitinglist", W_TIM_real(wrk)); VSLb_ts_req(req, "Waitinglist", W_TIM_real(wrk));
if (boc == NULL) { if (busy == NULL) {
VRY_Finish(req, DISCARD); VRY_Finish(req, DISCARD);
} else { } else {
AN(boc->flags & OC_F_BUSY); AN(busy->flags & OC_F_BUSY);
VRY_Finish(req, KEEP); VRY_Finish(req, KEEP);
} }
...@@ -397,9 +397,9 @@ cnt_lookup(struct worker *wrk, struct req *req) ...@@ -397,9 +397,9 @@ cnt_lookup(struct worker *wrk, struct req *req)
if (lr == HSH_MISS) { if (lr == HSH_MISS) {
/* Found nothing */ /* Found nothing */
AZ(oc); AZ(oc);
AN(boc); AN(busy);
AN(boc->flags & OC_F_BUSY); AN(busy->flags & OC_F_BUSY);
req->objcore = boc; req->objcore = busy;
req->req_step = R_STP_MISS; req->req_step = R_STP_MISS;
return (REQ_FSM_MORE); return (REQ_FSM_MORE);
} }
...@@ -408,9 +408,9 @@ cnt_lookup(struct worker *wrk, struct req *req) ...@@ -408,9 +408,9 @@ cnt_lookup(struct worker *wrk, struct req *req)
AZ(oc->flags & OC_F_BUSY); AZ(oc->flags & OC_F_BUSY);
req->objcore = oc; req->objcore = oc;
if ((oc->flags & OC_F_PASS) && boc != NULL) { if ((oc->flags & OC_F_PASS) && busy != NULL) {
/* Treat a graced Hit-For-Pass as a miss */ /* Treat a graced Hit-For-Pass as a miss */
req->objcore = boc; req->objcore = busy;
req->stale_oc = oc; req->stale_oc = oc;
req->req_step = R_STP_MISS; req->req_step = R_STP_MISS;
return (REQ_FSM_MORE); return (REQ_FSM_MORE);
...@@ -431,10 +431,10 @@ cnt_lookup(struct worker *wrk, struct req *req) ...@@ -431,10 +431,10 @@ cnt_lookup(struct worker *wrk, struct req *req)
switch (wrk->handling) { switch (wrk->handling) {
case VCL_RET_DELIVER: case VCL_RET_DELIVER:
if (boc != NULL) { if (busy != NULL) {
AZ(oc->flags & OC_F_PASS); AZ(oc->flags & OC_F_PASS);
AZ(boc->busyobj); AZ(busy->busyobj);
VBF_Fetch(wrk, req, boc, oc, VBF_BACKGROUND); VBF_Fetch(wrk, req, busy, oc, VBF_BACKGROUND);
} else { } else {
(void)VRB_Ignore(req);// XXX: handle err (void)VRB_Ignore(req);// XXX: handle err
} }
...@@ -447,8 +447,8 @@ cnt_lookup(struct worker *wrk, struct req *req) ...@@ -447,8 +447,8 @@ cnt_lookup(struct worker *wrk, struct req *req)
"change return(fetch) to return(miss) in vcl_hit{}"); "change return(fetch) to return(miss) in vcl_hit{}");
/* FALL-THROUGH */ /* FALL-THROUGH */
case VCL_RET_MISS: case VCL_RET_MISS:
if (boc != NULL) { if (busy != NULL) {
req->objcore = boc; req->objcore = busy;
req->stale_oc = oc; req->stale_oc = oc;
req->req_step = R_STP_MISS; req->req_step = R_STP_MISS;
} else { } else {
...@@ -481,8 +481,8 @@ cnt_lookup(struct worker *wrk, struct req *req) ...@@ -481,8 +481,8 @@ cnt_lookup(struct worker *wrk, struct req *req)
/* Drop our object, we won't need it */ /* Drop our object, we won't need it */
(void)HSH_DerefObjCore(wrk, &req->objcore); (void)HSH_DerefObjCore(wrk, &req->objcore);
if (boc != NULL) { if (busy != NULL) {
(void)HSH_DerefObjCore(wrk, &boc); (void)HSH_DerefObjCore(wrk, &busy);
VRY_Clear(req); VRY_Clear(req);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment