[freeside-commits] freeside/FS/FS Upgrade.pm,1.26,1.27
Ivan,,,
ivan at wavetail.420.am
Sun Feb 22 13:08:02 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv9806/FS/FS
Modified Files:
Upgrade.pm
Log Message:
a better rough idea of where freeside-upgrade spends time
Index: Upgrade.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Upgrade.pm,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- Upgrade.pm 1 Feb 2009 04:13:35 -0000 1.26
+++ Upgrade.pm 22 Feb 2009 21:08:00 -0000 1.27
@@ -51,6 +51,8 @@
if ( $class->can('_upgrade_data') ) {
warn "Upgrading $table...\n";
+ my $start = time;
+
my $oldAutoCommit = $FS::UID::AutoCommit;
local $FS::UID::AutoCommit = 0;
$FS::UID::AutoCommit = 0;
@@ -60,6 +62,9 @@
if ( $oldAutoCommit ) {
dbh->commit or die dbh->errstr;
}
+
+ #warn "\e[1K\rUpgrading $table... done in ". (time-$start). " seconds\n";
+ warn " done in ". (time-$start). " seconds\n";
} else {
warn "WARNING: asked for upgrade of $table,".
More information about the freeside-commits
mailing list