Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
ddced7a2
Commit
ddced7a2
authored
May 14, 2013
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't reverse order of transactions in callback
parent
d6eeed45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
vsl_dispatch.c
lib/libvarnishapi/vsl_dispatch.c
+8
-10
No files found.
lib/libvarnishapi/vsl_dispatch.c
View file @
ddced7a2
...
...
@@ -719,8 +719,7 @@ vslq_callback(struct VSLQ *vslq, struct vtx *vtx, VSLQ_dispatch_f *func,
void
*
priv
)
{
unsigned
n
=
vtx
->
n_descend
+
1
;
struct
vslc_vtx
*
cp
[
n
];
struct
VSL_cursor
*
CP
[
n
+
1
];
struct
vslc_vtx
*
cp
[
n
+
1
];
unsigned
i
,
j
;
AN
(
vslq
);
...
...
@@ -735,6 +734,7 @@ vslq_callback(struct VSLQ *vslq, struct vtx *vtx, VSLQ_dispatch_f *func,
vtx
->
type
!=
vtx_t_req
)
return
(
0
);
/* Build cursor array */
i
=
j
=
0
;
cp
[
i
]
=
&
vtx
->
c
;
vslc_vtx_reset
(
cp
[
i
]);
...
...
@@ -753,17 +753,15 @@ vslq_callback(struct VSLQ *vslq, struct vtx *vtx, VSLQ_dispatch_f *func,
j
++
;
}
assert
(
i
==
n
);
/* Reverse order */
for
(
i
=
0
;
i
<
n
;
i
++
)
CP
[
i
]
=
&
cp
[
n
-
i
-
1
]
->
c
.
c
;
CP
[
i
]
=
NULL
;
cp
[
i
]
=
NULL
;
/* Query test goes here */
if
(
vslq
->
query
==
NULL
?
1
:
vslq_runquery
(
vslq
->
query
,
CP
))
return
((
func
)(
vslq
->
vsl
,
CP
,
priv
));
else
if
(
vslq
->
query
!=
NULL
&&
vslq_runquery
(
vslq
->
query
,
(
struct
VSL_cursor
**
)
cp
))
return
(
0
);
/* Callback */
return
((
func
)(
vslq
->
vsl
,
(
struct
VSL_cursor
**
)
cp
,
priv
));
}
struct
VSLQ
*
...
...
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