}
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);
}
}
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);
}
/**
- * 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;