Mercurial > urweb
comparison src/c/cgi.c @ 1672:ea131de361d9
Fix some locking issues for client array
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Tue, 10 Jan 2012 17:32:48 -0500 |
parents | 36f7d1debb37 |
children | 3d922a28370b |
comparison
equal
deleted
inserted
replaced
1671:a54d223c3a7f | 1672:ea131de361d9 |
---|---|
129 | 129 |
130 void uw_do_expunge(uw_context ctx, uw_Basis_client cli, void *data) { | 130 void uw_do_expunge(uw_context ctx, uw_Basis_client cli, void *data) { |
131 if (uw_get_app(ctx)->db_begin(ctx)) | 131 if (uw_get_app(ctx)->db_begin(ctx)) |
132 uw_error(ctx, FATAL, "Error running SQL BEGIN"); | 132 uw_error(ctx, FATAL, "Error running SQL BEGIN"); |
133 uw_get_app(ctx)->expunger(ctx, cli); | 133 uw_get_app(ctx)->expunger(ctx, cli); |
134 if (uw_get_app(ctx)->db_commit(ctx)) | 134 uw_commit(ctx); |
135 uw_error(ctx, FATAL, "Error running SQL COMMIT"); | |
136 } | 135 } |
137 | 136 |
138 void uw_post_expunge(uw_context ctx, void *data) { | 137 void uw_post_expunge(uw_context ctx, void *data) { |
139 } | 138 } |
140 | 139 |