comparison src/c/http.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 4d0b80dd4c37
children 7095e1b7240b
comparison
equal deleted inserted replaced
1671:a54d223c3a7f 1672:ea131de361d9
352 352
353 void uw_do_expunge(uw_context ctx, uw_Basis_client cli, void *data) { 353 void uw_do_expunge(uw_context ctx, uw_Basis_client cli, void *data) {
354 if (uw_get_app(ctx)->db_begin(ctx)) 354 if (uw_get_app(ctx)->db_begin(ctx))
355 uw_error(ctx, FATAL, "Error running SQL BEGIN"); 355 uw_error(ctx, FATAL, "Error running SQL BEGIN");
356 uw_get_app(ctx)->expunger(ctx, cli); 356 uw_get_app(ctx)->expunger(ctx, cli);
357 if (uw_get_app(ctx)->db_commit(ctx)) 357 uw_commit(ctx);
358 uw_error(ctx, FATAL, "Error running SQL COMMIT");
359 } 358 }
360 359
361 void uw_post_expunge(uw_context ctx, void *data) { 360 void uw_post_expunge(uw_context ctx, void *data) {
362 } 361 }
363 362