comparison src/c/request.c @ 1115:150465f2895c

Database quotas
author Adam Chlipala <adamc@hcoop.net>
date Sun, 03 Jan 2010 17:13:45 -0500
parents 72670131dace
children 94e83c5533d2
comparison
equal deleted inserted replaced
1114:01b6c7144a44 1115:150465f2895c
21 int r = uw_rollback(ctx); 21 int r = uw_rollback(ctx);
22 22
23 if (r) { 23 if (r) {
24 log_error(logger_data, "Error running SQL ROLLBACK\n"); 24 log_error(logger_data, "Error running SQL ROLLBACK\n");
25 uw_reset(ctx); 25 uw_reset(ctx);
26 uw_write(ctx, "HTTP/1.1 500 Internal Server Error\n\r"); 26 uw_write(ctx, "HTTP/1.1 500 Internal Server Error\r\n");
27 uw_write(ctx, "Content-type: text/plain\r\n\r\n"); 27 uw_write(ctx, "Content-type: text/plain\r\n\r\n");
28 uw_write(ctx, "Error running SQL ROLLBACK\n"); 28 uw_write(ctx, "Error running SQL ROLLBACK\n");
29 uw_set_error_message(ctx, "Database error; you are probably out of storage space.");
29 } 30 }
30 31
31 return r; 32 return r;
32 } 33 }
33 34