diff --git a/client/tarantool/tc_opt.c b/client/tarantool/tc_opt.c index 331ad3e59a836853b98be0064a95b3f2ab7a94bf..93d0f4a00836edaf073efdbc0eb4d4245088ee24 100644 --- a/client/tarantool/tc_opt.c +++ b/client/tarantool/tc_opt.c @@ -53,7 +53,7 @@ static const void *tc_options_def = gopt_start( gopt_option('P', GOPT_ARG, gopt_shorts('P'), gopt_longs("play"), " <file>", "replay xlog file to the specified server"), gopt_option('S', GOPT_ARG, gopt_shorts('S'), - gopt_longs("space"), " <space>", "xlog file space number"), + gopt_longs("space"), " <space>", "filter by space number"), gopt_option('F', GOPT_ARG, gopt_shorts('F'), gopt_longs("from"), " <lsn>", "start xlog file from the specified lsn"), gopt_option('T', GOPT_ARG, gopt_shorts('T'), diff --git a/client/tarantool/tc_store.c b/client/tarantool/tc_store.c index ec2bc020e7b259ceebf9f49e53f5ab7b53b65f0f..17bb00650ee60d4869d5aa3fabba32cc6fc69aee 100644 --- a/client/tarantool/tc_store.c +++ b/client/tarantool/tc_store.c @@ -135,6 +135,10 @@ static int tc_snapshot_printer(struct tnt_iter *i) { struct tnt_tuple *tu = TNT_ISTORAGE_TUPLE(i); struct tnt_stream_snapshot *ss = TNT_SSNAPSHOT_CAST(TNT_ISTORAGE_STREAM(i)); + if (tc.opt.space_set) { + if (ss->log.current.row_snap.space != tc.opt.space) + return 0; + } ((tc_printerf_snap_t)tc.opt.snap_printer)(&ss->log.current.row_snap, tu); return 0; }