Skip to content
Snippets Groups Projects
Commit ec588dff authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

test that dump_sync works as well.

parent 6a88919b
No related branches found
No related tags found
1 merge request!297Streaming io
......@@ -68,10 +68,14 @@ int main(int argc, char *argv[]) {
dump_ensure(&d, 7 * chunk_size);
/* Dump a few numbers. */
printf("dumping %i chunks...\n", chunk_size); fflush(stdout);
printf("dumping %i chunks...\n", chunk_size);
fflush(stdout);
threadpool_map(&t, dump_mapper, NULL, chunk_size, 0, 1, &d);
}
/* Sync the file, not necessary before dump_close, but just to test this. */
dump_sync(&d);
/* Finalize the dump. */
dump_close(&d);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment