Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdp-pesi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
uplex-varnish
libvdp-pesi
Commits
377ab450
Unverified
Commit
377ab450
authored
Jun 12, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor: move potentially failing allocations to earlier
parent
cc1cf812
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
vdp_pesi.c
src/vdp_pesi.c
+10
-9
No files found.
src/vdp_pesi.c
View file @
377ab450
...
...
@@ -316,6 +316,16 @@ vped_include(struct req *preq, const char *src, const char *host,
AN
(
req
);
VSLdbgv
(
preq
,
"vped_include: new req=%p"
,
req
);
assert
(
VXID
(
req
->
vsl
->
wid
)
==
VXID
(
NO_VXID
));
pesi2
=
pesi_new
(
req
->
ws
,
pesi_tasks
);
if
(
pesi2
==
NULL
)
{
VSLb
(
req
->
vsl
,
SLT_Error
,
"Cannot allocate workspace for parallel ESI data"
);
req_fini
(
&
req
,
wrk
);
tree
->
retval
=
-
1
;
return
(
-
1
);
}
req
->
vsl
->
wid
=
VXID_Get
(
wrk
,
VSL_CLIENTMARKER
);
VSLdbgv
(
preq
,
"vped_include: new xid=%ju"
,
VXID
(
req
->
vsl
->
wid
));
...
...
@@ -383,15 +393,6 @@ vped_include(struct req *preq, const char *src, const char *host,
req
->
transport
=
&
VPED_transport
;
pesi2
=
pesi_new
(
req
->
ws
,
pesi_tasks
);
if
(
pesi2
==
NULL
)
{
VSLb
(
req
->
vsl
,
SLT_Error
,
"Cannot allocate workspace for parallel ESI data"
);
req_fini
(
&
req
,
wrk
);
tree
->
retval
=
-
1
;
return
(
-
1
);
}
pesi2
->
node
=
node
;
req
->
transport_priv
=
pesi2
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment