use a transaction when searching for the nearest hold request
authorgmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Oct 2010 21:48:31 +0000 (21:48 +0000)
committergmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Oct 2010 21:48:31 +0000 (21:48 +0000)
commitf38b6826bdcaf4e95fb2c6f6678404963d8753ed
tree141fcfccda737464399d3c3e1dc4aca74ce52cc0
parentbcfc7f61dcc05318beb3d5e51f0a0ed07175b410
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/branches/rel_2_0@18433 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm