comparison src/c/fastcgi.c @ 1936:6745eafff617

Start SQL transactions as read-only when possible, based on conservative program analysis
author Adam Chlipala <adam@chlipala.net>
date Thu, 12 Dec 2013 17:42:48 -0500
parents 3d922a28370b
children d02c1a0d8082
comparison
equal deleted inserted replaced
1935:fda9d5af69e7 1936:6745eafff617
630 630
631 void uw_copy_client_data(void *dst, void *src) { 631 void uw_copy_client_data(void *dst, void *src) {
632 } 632 }
633 633
634 void uw_do_expunge(uw_context ctx, uw_Basis_client cli, void *data) { 634 void uw_do_expunge(uw_context ctx, uw_Basis_client cli, void *data) {
635 if (uw_get_app(ctx)->db_begin(ctx)) 635 uw_ensure_transaction(ctx);
636 uw_error(ctx, FATAL, "Error running SQL BEGIN");
637 uw_get_app(ctx)->expunger(ctx, cli); 636 uw_get_app(ctx)->expunger(ctx, cli);
638 uw_commit(ctx); 637 uw_commit(ctx);
639 } 638 }
640 639
641 void uw_post_expunge(uw_context ctx, void *data) { 640 void uw_post_expunge(uw_context ctx, void *data) {