https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20549

--- Comment #1 from Alex Buckley <alexbuck...@catalyst.net.nz> ---
Created attachment 73899
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73899&action=edit
WR 289187 - Avoid biblio index race condition after moving item

The moveitem.pl script loops through a 2 value array containing "new"
and "old". The first loop value "new" is handed as an optional argument
to the MoveItemFromBiblio() function in C4/Items.pm. This updates the
biblios and only reindexes the new biblio.

If a 1 if returned from the call to MoveItemFromBilio() to moveitem.pl
then the loop iterates through the second value in the array "old" this
calls the MoveItemFromBiblio() function as well but this time the
aforementioned function only does one thing which is add the old biblio
to the zebraqueue.

Due to calling the ModItemFromBiblio() function twice from two different
iterations of the loop in moveitem.pl there is a 1 second gap between
the new biblio and old biblio being added to the zebraqueue table.

This reduces the chances of a race condition of the old biblio being
indexed before the new biblio.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to