diff options
author | Marko Kreen | 2011-12-22 11:33:14 +0000 |
---|---|---|
committer | Marko Kreen | 2011-12-22 11:33:14 +0000 |
commit | ca9d96aea05e8269a04a655f6cbc05db8c53603b (patch) | |
tree | fc5de7ac979c05ca4ddee0871b6f1977e47f6f7c | |
parent | 9f937c7a3e212a0dcced0dd473a3969491405580 (diff) |
londiste repair: set session role for apply conneciton
otherwise changes cannot be applied
-rw-r--r-- | python/londiste/repair.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/londiste/repair.py b/python/londiste/repair.py index 6b9e2280..02494b53 100644 --- a/python/londiste/repair.py +++ b/python/londiste/repair.py @@ -41,6 +41,7 @@ class Repairer(Syncer): if self.options.apply: apply_db = self.get_database('db', cache='applydb', autocommit=1) self.apply_curs = apply_db.cursor() + self.apply_curs.execute("set session_replication_role = 'replica'") src_curs = src_db.cursor() dst_curs = dst_db.cursor() |