use a transaction when searching for the nearest hold request
authorgmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Oct 2010 21:47:34 +0000 (21:47 +0000)
committergmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Oct 2010 21:47:34 +0000 (21:47 +0000)
commitb93e4419c7013e3ed21f36d0665de9bd8f92a428
tree83c6b1b78c3ba9ff0210550bbe6d2a054d20c57d
parent0df5b952af45f50839a969cb0e21adfe488aa1e4
use a transaction when searching for the nearest hold request

Solves the following problem in a setup that uses Slony - if
multiple items that can fulfill the same hold are checked
in one after another, occassionally two items will end up
being put in transit for the same hold request.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>

git-svn-id: svn://svn.open-ils.org/ILS/trunk@18432 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm