dovecot-2.0: pgsql: Added assert.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Feb 17 08:58:45 EET 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/b3cb10df15e6
changeset: 12601:b3cb10df15e6
user: Timo Sirainen <tss at iki.fi>
date: Thu Feb 17 08:58:43 2011 +0200
description:
pgsql: Added assert.
diffstat:
src/lib-sql/driver-pgsql.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 7d265040cd02 -r b3cb10df15e6 src/lib-sql/driver-pgsql.c
--- a/src/lib-sql/driver-pgsql.c Thu Feb 17 08:41:46 2011 +0200
+++ b/src/lib-sql/driver-pgsql.c Thu Feb 17 08:58:43 2011 +0200
@@ -75,6 +75,8 @@
static void driver_pgsql_set_state(struct pgsql_db *db, enum sql_db_state state)
{
+ i_assert(state == SQL_DB_STATE_BUSY || db->cur_result == NULL);
+
/* switch back to original ioloop in case the caller wants to
add/remove timeouts */
if (db->ioloop != NULL)
More information about the dovecot-cvs
mailing list