projects
/
bucardo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f580024
)
Make sure VAC process can write to the database!
author
Greg Sabino Mullane
<greg@endpoint.com>
Tue, 7 Jun 2016 17:54:46 +0000
(13:54 -0400)
committer
Greg Sabino Mullane
<greg@endpoint.com>
Tue, 7 Jun 2016 17:54:46 +0000
(13:54 -0400)
Bucardo.pm
patch
|
blob
|
blame
|
history
diff --git
a/Bucardo.pm
b/Bucardo.pm
index 1f8870ea06659a4f2f179109ff64f4675fce87f3..60f04a7992dfa50e5943b1d8349095fe18c842a6 100644
(file)
--- a/
Bucardo.pm
+++ b/
Bucardo.pm
@@
-5787,6
+5787,12
@@
sub connect_database {
$dbh->commit();
}
+ ## If this is a vacuum process, make sure it can write to the database!
+ if ('VAC' eq $self->{logprefix}) {
+ $dbh->do(qq{SET default_transaction_read_only = off});
+ $dbh->commit();
+ }
+
return $backend, $dbh;
} ## end of connect_database