Commit 8e36cb70 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vrt: Make sure VRT_Rollback() has a snapshot

Otherwise we would entirely unravel the task workspace.
parent f237ed15
...@@ -153,6 +153,7 @@ Bereq_Rollback(VRT_CTX) ...@@ -153,6 +153,7 @@ Bereq_Rollback(VRT_CTX)
HTTP_Clone(bo->bereq, bo->bereq0); HTTP_Clone(bo->bereq, bo->bereq0);
bo->vfp_filter_list = NULL; bo->vfp_filter_list = NULL;
bo->err_reason = NULL; bo->err_reason = NULL;
AN(bo->ws_bo);
WS_Rollback(bo->ws, bo->ws_bo); WS_Rollback(bo->ws, bo->ws_bo);
} }
......
...@@ -209,6 +209,7 @@ Req_Rollback(VRT_CTX) ...@@ -209,6 +209,7 @@ Req_Rollback(VRT_CTX)
req->filter_list = NULL; req->filter_list = NULL;
if (WS_Overflowed(req->ws)) if (WS_Overflowed(req->ws))
req->wrk->stats->ws_client_overflow++; req->wrk->stats->ws_client_overflow++;
AN(req->ws_req);
WS_Rollback(req->ws, req->ws_req); WS_Rollback(req->ws, req->ws_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