projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b98fc3
)
Detach result set from client on connection change
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 18 Jun 2010 08:56:09 +0000
(10:56 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 18 Jun 2010 08:56:09 +0000
(10:56 +0200)
This is to ensure that when a result set is destructed it will
never mangle with the ZOOM connection . It will also ensure
that we never return anything but cached content for a result
set when the connection (in a pazpar2 session) is reused.
src/client.c
patch
|
blob
|
history
diff --git
a/src/client.c
b/src/client.c
index
318f645
..
6540033
100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-671,6
+671,8
@@
int client_destroy(struct client *c)
void client_set_connection(struct client *cl, struct connection *con)
{
+ if (cl->resultset)
+ ZOOM_resultset_release(cl->resultset);
if (con)
{
assert(cl->connection == 0);