Mageia Bugzilla – Attachment 9975 Details for
Bug 22554
padre (Perl IDE) doesn't start with DBD::SQLite::db error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch to fix DBD::SQLite::db error
Locker.pm.patch (text/plain), 581 bytes, created by
Oleg Bosis
on 2018-02-10 16:59:10 CET
(
hide
)
Description:
Patch to fix DBD::SQLite::db error
Filename:
MIME Type:
Creator:
Oleg Bosis
Created:
2018-02-10 16:59:10 CET
Size:
581 bytes
patch
obsolete
>--- a/lib/Padre/Locker.pm 2018-02-10 18:46:46.741637865 +0300 >+++ b/lib/Padre/Locker.pm 2018-02-10 18:47:45.296023378 +0300 >@@ -102,7 +102,6 @@ > sub db_increment { > my $self = shift; > unless ( $self->{db_depth}++ ) { >- Padre::DB->begin; > > # Database operations we lock on are the most likely to > # involve writes. So opportunistically prevent blocking >@@ -111,6 +110,7 @@ > # corruption if (and only if) there is a power outage, > # operating system crash, or catastrophic hardware failure. > Padre::DB->pragma( synchronous => 0 ); >+ Padre::DB->begin; > } > return; > }
--- a/lib/Padre/Locker.pm 2018-02-10 18:46:46.741637865 +0300 +++ b/lib/Padre/Locker.pm 2018-02-10 18:47:45.296023378 +0300 @@ -102,7 +102,6 @@ sub db_increment { my $self = shift; unless ( $self->{db_depth}++ ) { - Padre::DB->begin; # Database operations we lock on are the most likely to # involve writes. So opportunistically prevent blocking @@ -111,6 +110,7 @@ # corruption if (and only if) there is a power outage, # operating system crash, or catastrophic hardware failure. Padre::DB->pragma( synchronous => 0 ); + Padre::DB->begin; } return; }
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22554
: 9975