From bc814d9fd9e1f09c2629ab5836e34ee2add42735 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 14 Sep 2011 15:19:58 +0200 Subject: [PATCH] Main recio: Killed an ASSERT, which triggered under legitimate conditions --- ucw/main-rec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.39.2