Use a transaction when clearing the expired circ history
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Oct 2010 12:56:34 +0000 (12:56 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Oct 2010 12:56:34 +0000 (12:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18395 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/support-scripts/clear_expired_circ_history.srfsh

index 935a28b..084d1da 100755 (executable)
@@ -1,2 +1,7 @@
 #!/openils/bin/srfsh
+open open-ils.cstore
+request open-ils.cstore open-ils.cstore.transaction.begin
 request open-ils.cstore open-ils.cstore.json_query {"from":["container.clear_all_expired_circ_history_items"]}
+request open-ils.cstore open-ils.cstore.transaction.commit
+close open-ils.cstore
+