null engine: fix queue bug with repeated commit() calls before event retrieval
authorJens Axboe <jens.axboe@oracle.com>
Fri, 9 Mar 2007 12:45:11 +0000 (13:45 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 9 Mar 2007 12:45:11 +0000 (13:45 +0100)
commit7401c088106ba35dcfba62ec753b6b20b72ad0e2
treeb5773673d26ece3cd51fcb616ace7d63e76dba0c
parent65afa5f2146ee010b7129934f68e691faee54982
null engine: fix queue bug with repeated commit() calls before event retrieval

Don't return anything if min_events == 0. This exposed a bug in
the commit handler, it needs to add to ->events, not set it.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/null.c