MT3915: deleted biblios would stick in zebra indexes

Since the update of biblios would be done AFTER the deletion of biblios,
and since biblios would be updated just before being deleted (in order to delete the items)
update process would recreate the biblio.

This patch fixes the order in order to do the deletion AFTER the update.
This commit is contained in:
Henri-Damien LAURENT 2010-07-05 14:04:50 +02:00
parent ac392dd444
commit a48cf1d549
1 changed files with 2 additions and 2 deletions

View File

@ -211,10 +211,10 @@ sub index_records {
}
my $record_fmt = ($as_xml) ? 'marcxml' : 'iso2709' ;
if ($process_zebraqueue) {
do_indexing($record_type, 'delete', "$directory/del_$record_type", $reset, $noshadow, $record_fmt, $zebraidx_log_opt)
if $num_records_deleted;
do_indexing($record_type, 'update', "$directory/upd_$record_type", $reset, $noshadow, $record_fmt, $zebraidx_log_opt)
if $num_records_exported;
do_indexing($record_type, 'delete', "$directory/del_$record_type", $reset, $noshadow, $record_fmt, $zebraidx_log_opt)
if $num_records_deleted;
} else {
do_indexing($record_type, 'update', "$directory/$record_type", $reset, $noshadow, $record_fmt, $zebraidx_log_opt)
if ($num_records_exported or $skip_export);