From: Martin Mares Date: Wed, 14 Sep 2011 13:19:58 +0000 (+0200) Subject: Main recio: Killed an ASSERT, which triggered under legitimate conditions X-Git-Tag: v5.0~107^2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=bc814d9fd9e1f09c2629ab5836e34ee2add42735;p=libucw.git Main recio: Killed an ASSERT, which triggered under legitimate conditions --- diff --git a/ucw/main-rec.c b/ucw/main-rec.c index d282b53f..df23427d 100644 --- a/ucw/main-rec.c +++ b/ucw/main-rec.c @@ -239,7 +239,8 @@ static void rec_io_stop_write(struct main_rec_io *rio) { DBG("RIO WRITE: Stopping write"); - ASSERT(!rio->write_watermark); + // XXX: When we are called after a write error, there might still + // be some data queued, but we need not care. rio->file.write_handler = NULL; file_chg(&rio->file); }