]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - file_write.c
write: Kill non-btr mode.
[paraslash.git] / file_write.c
index 4c043864620c49ea3ee307f8c788f8e46a923969..f7214306b5eafc1af5b7975262646ab3b6911967 100644 (file)
@@ -167,6 +167,7 @@ static void file_write_post_select_btr(__a_unused struct sched *s,
 err:
        assert(ret < 0);
        t->error = ret;
+       btr_remove_node(btrn);
 }
 
 __malloc static void *file_write_parse_config(const char *options)
@@ -182,6 +183,11 @@ __malloc static void *file_write_parse_config(const char *options)
        return NULL;
 }
 
+static void file_write_free_config(void *conf)
+{
+       file_cmdline_parser_free(conf);
+}
+
 /** the init function of the file writer */
 void file_write_init(struct writer *w)
 {
@@ -194,6 +200,7 @@ void file_write_init(struct writer *w)
        w->post_select = file_write_post_select;
        w->post_select_btr = file_write_post_select_btr;
        w->parse_config = file_write_parse_config;
+       w->free_config = file_write_free_config;
        w->close = file_write_close;
        w->shutdown = NULL; /* nothing to do */
        w->help = (struct ggo_help) {