From 1768b14387549dd9fa9494ba4fe9ad18240767bd Mon Sep 17 00:00:00 2001 From: Mike Lundy Date: Fri, 11 Dec 2009 16:22:37 +0000 Subject: [PATCH] always use a fresh transaction cursor --- src/vw/Plate/mod_plate_io.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vw/Plate/mod_plate_io.cc b/src/vw/Plate/mod_plate_io.cc index aeda783f1..3d5ef54c6 100644 --- a/src/vw/Plate/mod_plate_io.cc +++ b/src/vw/Plate/mod_plate_io.cc @@ -154,7 +154,8 @@ int handle_image(request_rec *r, const std::string& url) { IndexRecord idx_record; try { - idx_record = index.index->read_request(col,row,level,index.read_cursor); + /// XXX: This doubles the number of amqp messages + idx_record = index.index->read_request(col,row,level,index.index->transaction_cursor()); } catch(const TileNotFoundErr &) { throw; } catch(const vw::Exception &e) {