]> mj.ucw.cz Git - libucw.git/commitdiff
Main recio: Killed an ASSERT, which triggered under legitimate conditions
authorMartin Mares <mj@ucw.cz>
Wed, 14 Sep 2011 13:19:58 +0000 (15:19 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 14 Sep 2011 13:19:58 +0000 (15:19 +0200)
ucw/main-rec.c

index d282b53fd8decf7845b96a25fd9a1f937e19942b..df23427ddaf8390779f589cb9eec6ef0a522afee 100644 (file)
@@ -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);
 }