X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=write_common.c;h=dcf7bb166ade3f9efa4d04afd4fb55e67e9c2d8e;hp=8fb6c3d10797c4fc7ea4119de5c990271f177482;hb=318fbe90e08b6d9c5e781d9b517b670c5a1a04d7;hpb=00e4d4da1b2c00da139b09d3ed4ab9ad9fba2691 diff --git a/write_common.c b/write_common.c index 8fb6c3d1..dcf7bb16 100644 --- a/write_common.c +++ b/write_common.c @@ -61,7 +61,7 @@ static void wng_post_select(struct sched *s, struct task *t) } if (*g->loaded && min_written) { // PARA_INFO_LOG("moving %zd bytes\n", *g->loaded); - memmove(g->buf, g->buf + min_written, *g->loaded); + memmove(*g->bufp, *g->bufp + min_written, *g->loaded); } } @@ -86,8 +86,6 @@ int wng_open(struct writer_node_group *g) ret = wn->writer->open(wn); if (ret < 0) goto err_out; - wn->chunk_bytes = ret; - g->max_chunk_bytes = PARA_MAX(g->max_chunk_bytes, ret); } sprintf(g->task.status, "%s", "writer node group"); register_task(&g->task); @@ -144,9 +142,9 @@ struct writer_node_group *wng_new(unsigned num_writers) } /** - * call the init function of each supported paraslash writer + * Call the init function of each supported paraslash writer. */ -void init_supported_writers(void) +void writer_init(void) { int i;