Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug 2237 - calling zstored_error_count() more during errors
A zstored_error_count() invocation was incorrectly being guarded by an IF-THEN statement. So, this fix moves the call out of the IF body, but doing so meant having to change zstored_error_count()'s function signature (to just take a simple host_ident string). Also, refactored out a zstored_get_downstream_conns() helper function, to handle a case when the zstored_error_count() wasn't counting correctly the very first time before moxi had tried its very first connection attempt. Change-Id: I08468db8d767ea555c893d6c39276dc93968b92e Reviewed-on: http://review.northscale.com/2378 Reviewed-by: Matt Ingenthron <matt@northscale.com> Tested-by: Steve Yen <steve.yen@gmail.com>
- Loading branch information
Showing
1 changed file
with
53 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters