Reingest was not happening if all ingests were skipped, except for the
display field reingest. This came down to a matter of two conditional
statements not including checks for the $skip_display variable being
true.
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
if (scalar(@lol) && scalar(@running) < $max_child && !$duration_expired) {
# Reuse $records for the lulz.
$records = shift(@lol);
- if ($skip_search && $skip_facets && $skip_attrs) {
+ if ($skip_search && $skip_facets && $skip_attrs && $skip_display) {
$count++;
} else {
reingest($records);
$db_user, $db_password);
reingest_attributes($dbh, $list) unless ($skip_attrs);
reingest_field_entries($dbh, $list)
- unless ($skip_facets && $skip_search);
+ unless ($skip_facets && $skip_search && $skip_display);
$dbh->disconnect();
exit(0);
}