From: Ian Campbell <ian.campbell@citrix.com>
To: Dave Scott <Dave.Scott@citrix.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
Wei Liu <wei.liu2@citrix.com>
Subject: Re: [PATCH] oxenstored: fix del_watches and del_transactions
Date: Thu, 18 Jun 2015 09:56:37 +0100 [thread overview]
Message-ID: <1434617797.28264.26.camel@citrix.com> (raw)
In-Reply-To: <1434617632.28264.24.camel@citrix.com>
On Thu, 2015-06-18 at 09:53 +0100, Ian Campbell wrote:
> On Wed, 2015-06-17 at 20:44 +0100, Dave Scott wrote:
> > > On 17 Jun 2015, at 20:39, Wei Liu <wei.liu2@citrix.com> wrote:
> > >
> > > The statement to reset nb_watches should be in del_watches, not
> > > del_transactions.
> > >
> > > Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> > > Cc: David Scott <dave.scott@citrix.com>
> > > ---
> > > 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 <dave.scott@citrix.com>
>
> Alas:
> File "connection.ml", line 191, characters 17-19:
> Error: Syntax error
>
> If I just need to append a ; to the moved line I can do that on commit,
> if it needs e.g. wrapping in a begin/end or something then I'd best have
> another patch.
Actually, I think the ; should be on the previous line and the one on
the old previous line should go, like the below. Look correct?
commit d962aa44e4128ea677ce8407fc2483d94f007d91
Author: Wei Liu <wei.liu2@citrix.com>
Date: Wed Jun 17 20:39:49 2015 +0100
oxenstored: fix del_watches and del_transactions
The statement to reset nb_watches should be in del_watches, not
del_transactions.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: David Scott <dave.scott@citrix.com>
Acked-by: David Scott <dave.scott@citrix.com>
[ ijc -- fix syntax error by adding a ";" to the previous line in the
new location and removing from the previous line in the old ]
diff --git a/tools/ocaml/xenstored/connection.ml b/tools/ocaml/xenstored/connection.ml
index 9de4978..0a2c481 100644
--- a/tools/ocaml/xenstored/connection.ml
+++ b/tools/ocaml/xenstored/connection.ml
@@ -187,11 +187,11 @@ let del_watch con path token =
apath, w
let del_watches con =
- Hashtbl.clear con.watches
+ Hashtbl.clear con.watches;
+ con.nb_watches <- 0
let del_transactions con =
- Hashtbl.clear con.transactions;
- con.nb_watches <- 0
+ Hashtbl.clear con.transactions
let list_watches con =
let ll = Hashtbl.fold
next prev parent reply other threads:[~2015-06-18 8:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-17 19:39 [PATCH] oxenstored: fix del_watches and del_transactions Wei Liu
2015-06-17 19:44 ` Dave Scott
2015-06-18 8:53 ` Ian Campbell
2015-06-18 8:56 ` Ian Campbell [this message]
2015-06-18 9:13 ` Ian Campbell
2015-06-18 9:23 ` Wei Liu
2015-06-18 9:27 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434617797.28264.26.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Dave.Scott@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.