Mercurial > urweb
comparison src/c/fastcgi.c @ 1979:81bc76aa4acd
Merge in upstream changes.
author | Patrick Hurst <phurst@mit.edu> |
---|---|
date | Sat, 18 Jan 2014 18:26:24 -0500 |
parents | 9f3597979e98 |
children | c93fbd139732 |
comparison
equal
deleted
inserted
replaced
1978:c5143edaf3c7 | 1979:81bc76aa4acd |
---|---|
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 |
638 if (uw_commit(ctx)) | |
639 uw_error(ctx, UNLIMITED_RETRY, "Rerunning expunge transaction"); | |
639 } | 640 } |
640 | 641 |
641 void uw_post_expunge(uw_context ctx, void *data) { | 642 void uw_post_expunge(uw_context ctx, void *data) { |
642 } | 643 } |
643 | 644 |