Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Down mark a conneciton up unless it was actually down

  • Loading branch information...
commit ca363880e73a29386115373cdab3860180d03fe4 1 parent a3ea62c
@dcramer dcramer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  nydus/db/routers/base.py
View
2  nydus/db/routers/base.py
@@ -233,7 +233,7 @@ def _route(self, attr, args, kwargs, **fkwargs):
@routing_params
def _post_routing(self, attr, db_nums, args, kwargs, **fkwargs):
- if db_nums:
+ if db_nums and db_nums[0] in self._down_connections:
self.mark_connection_up(db_nums[0])
return db_nums
Please sign in to comment.
Something went wrong with that request. Please try again.