Enabled debug assertions for DEBUG=Y builds. Fixed one debug assertion in log manager.

This commit is contained in:
vraatikka
2013-08-05 17:47:21 +03:00
parent bc6fe8f6ef
commit b852079631
2 changed files with 5 additions and 9 deletions

View File

@ -774,7 +774,7 @@ static char* blockbuf_get_writepos(
ss_dassert(pos == NULL);
ss_dassert(!(bb->bb_isfull || bb->bb_buf_left < str_len));
ss_dassert(bb_list->mlist_nodecount <= nodecount_max);
ss_dassert(bb_list->mlist_nodecount <= bb_list->mlist_nodecount_max);
/**
* Registration to blockbuf adds reference for the write operation.
@ -816,7 +816,7 @@ static char* blockbuf_get_writepos(
/** Unlock buffer */
simple_mutex_unlock(&bb->bb_mutex);
ss_dassert(bb_list->mlist_mutex->sm_lock_thr != pthread_self());
ss_dassert(bb_list->mlist_mutex.sm_lock_thr != pthread_self());
return pos;
}