X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=write.c;h=571dc4ed8e4c0d35e253f277205975d5eac8758c;hp=cf48922a473e23a85d4153d9784af0cfcbb3011f;hb=65a0002eb560b7248cbb0b4f143d00053b66bccc;hpb=be9f7c9b442f7b723427a79f85774d5fa7718425 diff --git a/write.c b/write.c index cf48922a..571dc4ed 100644 --- a/write.c +++ b/write.c @@ -210,6 +210,20 @@ static int main_btr(struct sched *s) s->default_timeout.tv_sec = 10; s->default_timeout.tv_usec = 50000; ret = schedule(s); + if (ret >= 0) { + int j; + for (j = 0; j < i; j++) { + struct task *t = &wns[j].task; + assert(t->error < 0); + if (t->error != -E_WRITE_COMMON_EOF + && t->error != -E_BTR_EOF) { + PARA_ERROR_LOG("%s: %s\n", t->status, + para_strerror(-t->error)); + if (ret >= 0) + ret = t->error; + } + } + } out: for (i--; i >= 0; i--) { struct writer_node *wn = wns + i;