From: Pete Zaitcev <zaitcev@redhat.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: hail-devel@vger.kernel.org
Subject: Re: [PATCH v3] CLD replication (WIP)
Date: Tue, 11 Aug 2009 17:56:39 -0600 [thread overview]
Message-ID: <20090811175639.43a1cec4@redhat.com> (raw)
In-Reply-To: <20090810182435.GA23238@havoc.gtf.org>
On Mon, 10 Aug 2009 14:24:35 -0400, Jeff Garzik <jeff@garzik.org> wrote:
> + /*
> + * This callback runs on the context of the replication
> + * manager thread, and calling any of our functions thus
> + * turns our program into a multi-threaded one. Instead
> + * we do a loopbreak and postpone the processing.
> + */
> + /* wake up main loop */
> + write(cld_srv.rep_pipe[1], &c, 1);
Might want to change the comment, you don't literally do a loopbreak
if libevent is not present. Change it to "signal the main thread"
or something like that.
BTW, you don't need state_cldb_new anymore, write the desired state
or signal type into your pipe and voila. I always thought that the
two-stage state change was excessively ugly, but without a pipe
I didn't see an alternative.
> cldlog(LOG_INFO, "initialized: dbg %u",
> debugging);
> + cldlog(LOG_INFO, "replication: %s:%u",
> + cld_srv.myhost,
> + cld_srv.rep_port);
Meh, it can easily fit on one line.
-- Pete
prev parent reply other threads:[~2009-08-11 23:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-31 10:40 [PATCH v1] CLD replication (WIP) Jeff Garzik
2009-07-31 18:14 ` Sage Weil
2009-07-31 18:38 ` Jeff Garzik
2009-07-31 18:52 ` Jeff Garzik
2009-07-31 19:44 ` Sage Weil
2009-07-31 20:41 ` CLD future plans (was Re: [PATCH v1] CLD replication (WIP)) Jeff Garzik
2009-07-31 21:26 ` Sage Weil
2009-07-31 21:55 ` CLD ping/response algorithm Jeff Garzik
2009-08-10 18:24 ` [PATCH v3] CLD replication (WIP) Jeff Garzik
2009-08-11 23:56 ` Pete Zaitcev [this message]
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=20090811175639.43a1cec4@redhat.com \
--to=zaitcev@redhat.com \
--cc=hail-devel@vger.kernel.org \
--cc=jeff@garzik.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.