From: miker Date: Wed, 20 Oct 2010 12:56:34 +0000 (+0000) Subject: Use a transaction when clearing the expired circ history X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c4e7c888efef8a3d53a40b6b153e71d25cd5afbc;p=contrib%2FConifer.git Use a transaction when clearing the expired circ history git-svn-id: svn://svn.open-ils.org/ILS/trunk@18395 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/support-scripts/clear_expired_circ_history.srfsh b/Open-ILS/src/support-scripts/clear_expired_circ_history.srfsh index 935a28be49..084d1dae6e 100755 --- a/Open-ILS/src/support-scripts/clear_expired_circ_history.srfsh +++ b/Open-ILS/src/support-scripts/clear_expired_circ_history.srfsh @@ -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 +