This repository has been archived by the owner. It is now read-only.
Browse files

db_manager: Don't try writing to slaves for rels.

  • Loading branch information...
spladug committed Dec 14, 2012
1 parent eebb529 commit c91374acc4ee8c47cdf5e677194b3142d503df26
Showing with 2 additions and 1 deletion.
  1. +2 −1 r2/r2/lib/manager/
@@ -90,7 +90,8 @@ def things_iter(self):
def rels_iter(self):
for name, (t1_name, t2_name, engines) in self._relations.iteritems():
- engines = [e for e in engines if e not in self.dead]
+ engines = [engines[0]] + [e for e in engines[1:]
+ if e not in self.dead]
yield name, (t1_name, t2_name, engines)
def mark_dead(self, engine, g_override=None):

0 comments on commit c91374a

Please sign in to comment.