All of lore.kernel.org
 help / color / mirror / Atom feed
* [tabled patch 4/4] log TDB state transition by default
@ 2010-05-22  2:20 Pete Zaitcev
  0 siblings, 0 replies; only message in thread
From: Pete Zaitcev @ 2010-05-22  2:20 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Project Hail List

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) {
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-22  2:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-22  2:20 [tabled patch 4/4] log TDB state transition by default Pete Zaitcev

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.