projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45f0e28
)
Don't commit if not needed
author
Jamie Cameron
<jcameron@webmin.com>
Sun, 19 Sep 2010 23:01:54 +0000
(16:01 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Sun, 19 Sep 2010 23:01:54 +0000
(16:01 -0700)
web-lib-funcs.pl
patch
|
blob
|
history
diff --git
a/web-lib-funcs.pl
b/web-lib-funcs.pl
index
184c538
..
f84281f
100755
(executable)
--- a/
web-lib-funcs.pl
+++ b/
web-lib-funcs.pl
@@
-9250,7
+9250,9
@@
sub disconnect_userdb
my ($str, $h) = @_;
if ($str =~ /^(mysql|postgresql):/) {
# DBI disconnnect
- $h->commit();
+ if (!$h->{'AutoCommit'}) {
+ $h->commit();
+ }
$h->disconnect();
}
elsif ($str =~ /^ldap:/) {