From 99171d27a673a519c1d12e72ad9f46b70cafb387 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 18 Jun 2010 10:56:09 +0200 Subject: [PATCH] Detach result set from client on connection change 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.c b/src/client.c index 318f645..6540033 100644 --- 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); -- 1.7.10.4