Skip to content

Commit d0012c7

Browse files
committed
fixup! flux-dump: support parallel dump of valref
1 parent aa2e49c commit d0012c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/cmd/builtin/dump.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static time_t dump_time;
6161
static gid_t dump_gid;
6262
static uid_t dump_uid;
6363
static int keycount;
64-
static bool async;
64+
static bool fast;
6565

6666
static void read_verror (const char *fmt, va_list ap)
6767
{
@@ -297,7 +297,7 @@ static void dump_valref (struct archive *ar,
297297
dvd.path = path;
298298
dvd.count = count;
299299

300-
if (async) {
300+
if (fast) {
301301
if (dump_valref_async (&dvd) < 0)
302302
goto cleanup;
303303
}
@@ -528,8 +528,8 @@ static int cmd_dump (optparse_t *p, int ac, char *av[])
528528
verbose = true;
529529
if (optparse_hasopt (p, "quiet"))
530530
quiet = true;
531-
if (optparse_hasopt (p, "async"))
532-
async = true;
531+
if (optparse_hasopt (p, "fast"))
532+
fast = true;
533533
if (optparse_hasopt (p, "ignore-failed-read"))
534534
ignore_failed_read = true;
535535
if (optparse_hasopt (p, "no-cache")) {
@@ -610,7 +610,7 @@ static struct optparse_option dump_opts[] = {
610610
{ .name = "sd-notify", .has_arg = 0,
611611
.usage = "Send status updates to systemd via flux-broker(1)",
612612
},
613-
{ .name = "async", .has_arg = 0,
613+
{ .name = "fast", .has_arg = 0,
614614
.usage = "Speed up flux-dump by running some operations asynchronously",
615615
},
616616
OPTPARSE_TABLE_END

0 commit comments

Comments
 (0)