FreeBSD Bugzilla – Attachment 107516 Details for
Bug 148318
Recent versions of p5-DBIx-Class break audio/squeezeboxserver
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-squeezeboxserver-autocommit.patch
patch-squeezeboxserver-autocommit.patch (text/plain; x-mac-type="0"; x-mac-creator="0"), 1.14 KB, created by
Christopher Key
on 2010-07-05 23:59:49 UTC
(
hide
)
Description:
patch-squeezeboxserver-autocommit.patch
Filename:
MIME Type:
Creator:
Christopher Key
Created:
2010-07-05 23:59:49 UTC
Size:
1.14 KB
patch
obsolete
>Index: Slim/Schema.pm >=================================================================== >--- Slim/Schema.pm (revision 31006) >+++ Slim/Schema.pm (working copy) >@@ -274,11 +274,15 @@ > # For custom exceptions > $class->storage_type('Slim::Schema::Storage'); > >+ # Don't use autocommit mode for the scanner. >+ # Needs to be set here as setting dbh->{'AutoCommit'} = 0 later >+ # confusing the transaction nesting logic. >+ my $AutoCommit = (main::SCANNER ? 0 : 1); > my $on_connect_do = $sqlHelperClass->on_connect_do(); > > $class->connection( $dsn || $source, $username, $password, { > RaiseError => 1, >- AutoCommit => 1, >+ AutoCommit => $AutoCommit, > PrintError => 0, > Taint => 1, > on_connect_do => [ >Index: scanner.pl >=================================================================== >--- scanner.pl (revision 31006) >+++ scanner.pl (working copy) >@@ -236,9 +236,6 @@ > > main::INFOLOG && $log->info("Squeezebox Server Scanner done init...\n"); > >- # Take the db out of autocommit mode - this makes for a much faster scan. >- Slim::Schema->storage->dbh->{'AutoCommit'} = 0; >- > my $scanType = 'SETUP_STANDARDRESCAN'; > > if ($wipe) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 148318
: 107516