auto commit for vacuum
authorjeff <jeff>
Tue, 18 Sep 2007 06:07:09 +0000 (06:07 +0000)
committerjeff <jeff>
Tue, 18 Sep 2007 06:07:09 +0000 (06:07 +0000)
FS/FS/Cron/expire_user_pref.pm

index 7ab73d2..3226927 100644 (file)
@@ -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;