projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avoid deadlocks, RT#10574
[freeside.git]
/
FS
/
bin
/
freeside-torrus-srvderive
diff --git
a/FS/bin/freeside-torrus-srvderive
b/FS/bin/freeside-torrus-srvderive
index
e8626e1
..
a02d23e
100644
(file)
--- a/
FS/bin/freeside-torrus-srvderive
+++ b/
FS/bin/freeside-torrus-srvderive
@@
-102,8
+102,10
@@
while (1) {
exit unless @serviceids; #don't try to search for empty virtual ports
#nonlocking select statements; rows in this table never change
exit unless @serviceids; #don't try to search for empty virtual ports
#nonlocking select statements; rows in this table never change
- dbh->do('SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED')
- if driver_name eq 'mysql';
+ if ( driver_name eq 'mysql' ) {
+ dbh->do('SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED');
+ dbh->commit or die dbh->errstr;
+ }
my @in = ();
for my $dir ('_IN', '_OUT') {
my @in = ();
for my $dir ('_IN', '_OUT') {