Menu

#3908 balance dbs vs log_reader_info

Slash 2.5/3.0
open
MySQL (78)
5
2007-05-07
2007-05-07
shane
No

Problem: If you have only one reader-db, you will never receive db statistics if you send the irc_slash bot a 'dbs' command.

http://slashcode.cvs.sourceforge.net/slashcode/slash/themes/slashcode/tasks/balance_readers.pl?revision=1.15&view=markup

The reason for this is though the script is called balance_readers, it never does call the log_reader_info if if ($n_readers < 2)

So the table dbs_readerstatus is never populated with data.

What would be ideal is if the check for N<2 were moved farther down in the code such that itt would only prevent adjust_readers from being called.

Discussion


Log in to post a comment.