sqlite: do a BEGIN EXCLUSIVE TRANSACTION in force-lock mode.
authorGreg Sabino Mullane <greg@endpoint.com>
Sat, 12 Apr 2014 18:33:50 +0000 (14:33 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Sat, 12 Apr 2014 18:33:50 +0000 (14:33 -0400)
Bucardo.pm

index e3928f3aca869226a0d0a323027482cc4a4b4eda..57e8db5c1d0024150f0f384e31b0d2f6ba18c9cd 100644 (file)
@@ -3033,7 +3033,7 @@ sub start_kid {
                         $x->{dbh}->do("LOCK TABLE $com");
                     }
                     elsif ('sqlite' eq $x->{dbtype}) {
-                        ## BEGIN EXCLUSIVE? May not be needed...
+                        $x->{dbh}->do('BEGIN EXCLUSIVE TRANSACTION');
                     }
                 }
             }