From: jeff Date: Tue, 18 Sep 2007 06:07:09 +0000 (+0000) Subject: auto commit for vacuum X-Git-Tag: TRIXBOX_2_6~368 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=e1505ce8386ac19d01bbcf7ef2ac6f1f3798560b;p=freeside.git auto commit for vacuum --- diff --git a/FS/FS/Cron/expire_user_pref.pm b/FS/FS/Cron/expire_user_pref.pm index 7ab73d280..32269271e 100644 --- a/FS/FS/Cron/expire_user_pref.pm +++ b/FS/FS/Cron/expire_user_pref.pm @@ -12,6 +12,9 @@ sub expire_user_pref { " AND expiration < ?"; my $sth = dbh->prepare($sql) or die dbh->errstr; $sth->execute(time) or die $sth->errstr; + + dbh->commit or die dbh->errstr if $FS::UID::AutoCommit + } 1;