hail-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pete Zaitcev <zaitcev@redhat.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Project Hail List <hail-devel@vger.kernel.org>
Subject: [tabled patch 4/4] log TDB state transition by default
Date: Fri, 21 May 2010 20:20:08 -0600	[thread overview]
Message-ID: <20100521202008.641a04af@redhat.com> (raw)

This is useable because tabled is, regrettably, extremely slow to start,
and the "initialized" message that it logs is confusingly premature.
The daemon only starts accepting requests about 20 seconds later,
when the TDB transition happens.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>

---
 server/server.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 451f183467804f47646744599a66c7916b5dd99e
Author: Pete Zaitcev <zaitcev@yahoo.com>
Date:   Fri May 21 19:58:27 2010 -0600

    Make DB state change visible in logs by default.

diff --git a/server/server.c b/server/server.c
index 4e8dba3..703a656 100644
--- a/server/server.c
+++ b/server/server.c
@@ -1809,8 +1809,8 @@ static void tdb_state_process(enum st_tdb new_state)
 {
 	unsigned int db_flags;
 
-	if (debugging)
-		applog(LOG_DEBUG, "TDB state > %s", state_name_tdb[new_state]);
+	applog(LOG_INFO, "TDB state %s", state_name_tdb[new_state]);
+
 	if ((new_state == ST_TDB_MASTER || new_state == ST_TDB_SLAVE) &&
 	    tabled_srv.state_tdb == ST_TDB_ACTIVE) {
 

                 reply	other threads:[~2010-05-22  2:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20100521202008.641a04af@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).