Commit ed7b3105 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Only attempt to salvage an object into Transient if it wasn't already

destined for Transient in the first place.
parent a6277de3
......@@ -107,14 +107,9 @@ vbf_bereq2obj(struct worker *wrk, struct busyobj *bo)
bo->stats = &wrk->stats;
AN(bo->fetch_objcore);
obj = STV_NewObject(bo, bo->storage_hint, l, nhttp);
#if 0
// XXX: we shouldn't retry if we're already on Transient
if (obj == NULL &&
(bo->storage_hint == NULL ||
strcmp(bo->storage_hint, TRANSIENT_STORAGE))) {
#else
if (obj == NULL) {
#endif
/*
* Try to salvage the transaction by allocating a
* shortlived object on Transient storage.
......@@ -316,7 +311,7 @@ vbf_stp_fetchhdr(struct worker *wrk, struct busyobj *bo)
if (i) {
AZ(bo->vbc);
return (F_STP_ERROR);
}
}
AN(bo->vbc);
http_VSL_log(bo->beresp);
......
......@@ -36,8 +36,8 @@ client c1 {
delay 1
} -run
# Two failures, one for obj2 and two for the attempts at sending error
varnish v1 -expect SMA.Transient.c_fail == 3
# Two failures, one for obj2 and one for the attempts at sending error
varnish v1 -expect SMA.Transient.c_fail == 2
client c1 {
# Check that Varnish is still alive
......
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