[open-ils-commits] r18395 - trunk/Open-ILS/src/support-scripts (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Oct 20 08:56:35 EDT 2010


Author: miker
Date: 2010-10-20 08:56:34 -0400 (Wed, 20 Oct 2010)
New Revision: 18395

Modified:
   trunk/Open-ILS/src/support-scripts/clear_expired_circ_history.srfsh
Log:
Use a transaction when clearing the expired circ history

Modified: trunk/Open-ILS/src/support-scripts/clear_expired_circ_history.srfsh
===================================================================
--- trunk/Open-ILS/src/support-scripts/clear_expired_circ_history.srfsh	2010-10-19 23:47:25 UTC (rev 18394)
+++ trunk/Open-ILS/src/support-scripts/clear_expired_circ_history.srfsh	2010-10-20 12:56:34 UTC (rev 18395)
@@ -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
+



More information about the open-ils-commits mailing list