From: Dave Scott Subject: Re: [PATCH] oxenstored: fix del_watches and del_transactions Date: Wed, 17 Jun 2015 19:44:19 +0000 Message-ID: <745A59CD-7FD7-4DFA-A33D-032974BD7B71@citrix.com> References: <1434569989-5774-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z5JG1-0000hN-SY for xen-devel@lists.xenproject.org; Wed, 17 Jun 2015 19:44:21 +0000 In-Reply-To: <1434569989-5774-1-git-send-email-wei.liu2@citrix.com> Content-Language: en-US Content-ID: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: Xen-devel , Ian Campbell List-Id: xen-devel@lists.xenproject.org > On 17 Jun 2015, at 20:39, Wei Liu wrote: > > The statement to reset nb_watches should be in del_watches, not > del_transactions. > > Signed-off-by: Wei Liu > Cc: David Scott > --- > It was only until Ian applied previous patch that I discovered this > copy-n-paste error. Sorry about this. Oh yes I see what you mean. Acked-by: David Scott Cheers, Dave > --- > tools/ocaml/xenstored/connection.ml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/ocaml/xenstored/connection.ml b/tools/ocaml/xenstored/connection.ml > index 9de4978..935939a 100644 > --- a/tools/ocaml/xenstored/connection.ml > +++ b/tools/ocaml/xenstored/connection.ml > @@ -188,10 +188,10 @@ let del_watch con path token = > > let del_watches con = > Hashtbl.clear con.watches > + con.nb_watches <- 0 > > let del_transactions con = > Hashtbl.clear con.transactions; > - con.nb_watches <- 0 > > let list_watches con = > let ll = Hashtbl.fold > -- > 1.9.1 >