From d6520c564eba0960fb3fedc6f5ad4a3f9653cc39 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 28 Nov 2003 14:47:45 +0000 Subject: [PATCH] Bug fix: zebra_begin_trans did not always invalidate result sets when register was reopened. --- index/zebraapi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index/zebraapi.c b/index/zebraapi.c index 5fc521c..f90d3f9 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.114 2003-09-05 10:51:17 adam Exp $ +/* $Id: zebraapi.c,v 1.115 2003-11-28 14:47:45 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 Index Data Aps @@ -1434,7 +1434,10 @@ int zebra_begin_trans (ZebraHandle zh, int rw) zebra_lock_r (zh->lock_normal); if (zh->reg) + { + resultSetInvalidate (zh); zebra_register_close (zh->service, zh->reg); + } zh->reg = zebra_register_open (zh->service, zh->reg_name, 0, val == 'c' ? 1 : 0, zh->res, zh->path_reg); -- 1.7.10.4