[open-ils-commits] r11835 - trunk/Open-ILS/src/extras/import
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jan 14 18:56:58 EST 2009
Author: sboyette
Date: 2009-01-14 18:56:57 -0500 (Wed, 14 Jan 2009)
New Revision: 11835
Modified:
trunk/Open-ILS/src/extras/import/parallel_pg_loader.pl
Log:
mirroring changs to pg_loader
Modified: trunk/Open-ILS/src/extras/import/parallel_pg_loader.pl
===================================================================
--- trunk/Open-ILS/src/extras/import/parallel_pg_loader.pl 2009-01-14 23:43:23 UTC (rev 11834)
+++ trunk/Open-ILS/src/extras/import/parallel_pg_loader.pl 2009-01-14 23:56:57 UTC (rev 11835)
@@ -17,6 +17,7 @@
my @files;
my ($config, $output, @auto, @order, @wipe) =
('/openils/conf/opensrf_core.xml', 'pg_loader-output');
+my $nocommit = 0;
GetOptions(
'config=s' => \$config,
@@ -24,6 +25,7 @@
'wipe=s' => \@wipe,
'autoprimary=s' => \@auto,
'order=s' => \@order,
+ 'nocommit=i' => \$nocommit,
);
my $pwd = `pwd`;
@@ -124,5 +126,5 @@
if (grep /^mfr$/, %out_files) {
$main_out->print("SELECT reporter.enable_materialized_simple_record_trigger();\n");
}
-$main_out->print("COMMIT;\n\n");
+$main_out->print("COMMIT;\n\n") unless $nocommit;
$main_out->close;
More information about the open-ils-commits
mailing list