Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
c6a67524
Commit
c6a67524
authored
11 years ago
by
Dmitry Simonenko
Browse files
Options
Downloads
Patches
Plain Diff
console client: add space filter for snapshot files
parent
dff3c4c2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/tarantool/tc_opt.c
+1
-1
1 addition, 1 deletion
client/tarantool/tc_opt.c
client/tarantool/tc_store.c
+4
-0
4 additions, 0 deletions
client/tarantool/tc_store.c
with
5 additions
and
1 deletion
client/tarantool/tc_opt.c
+
1
−
1
View file @
c6a67524
...
@@ -53,7 +53,7 @@ static const void *tc_options_def = gopt_start(
...
@@ -53,7 +53,7 @@ static const void *tc_options_def = gopt_start(
gopt_option
(
'P'
,
GOPT_ARG
,
gopt_shorts
(
'P'
),
gopt_option
(
'P'
,
GOPT_ARG
,
gopt_shorts
(
'P'
),
gopt_longs
(
"play"
),
" <file>"
,
"replay xlog file to the specified server"
),
gopt_longs
(
"play"
),
" <file>"
,
"replay xlog file to the specified server"
),
gopt_option
(
'S'
,
GOPT_ARG
,
gopt_shorts
(
'S'
),
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_option
(
'F'
,
GOPT_ARG
,
gopt_shorts
(
'F'
),
gopt_longs
(
"from"
),
" <lsn>"
,
"start xlog file from the specified lsn"
),
gopt_longs
(
"from"
),
" <lsn>"
,
"start xlog file from the specified lsn"
),
gopt_option
(
'T'
,
GOPT_ARG
,
gopt_shorts
(
'T'
),
gopt_option
(
'T'
,
GOPT_ARG
,
gopt_shorts
(
'T'
),
...
...
This diff is collapsed.
Click to expand it.
client/tarantool/tc_store.c
+
4
−
0
View file @
c6a67524
...
@@ -135,6 +135,10 @@ static int tc_snapshot_printer(struct tnt_iter *i) {
...
@@ -135,6 +135,10 @@ static int tc_snapshot_printer(struct tnt_iter *i) {
struct
tnt_tuple
*
tu
=
TNT_ISTORAGE_TUPLE
(
i
);
struct
tnt_tuple
*
tu
=
TNT_ISTORAGE_TUPLE
(
i
);
struct
tnt_stream_snapshot
*
ss
=
struct
tnt_stream_snapshot
*
ss
=
TNT_SSNAPSHOT_CAST
(
TNT_ISTORAGE_STREAM
(
i
));
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
);
((
tc_printerf_snap_t
)
tc
.
opt
.
snap_printer
)(
&
ss
->
log
.
current
.
row_snap
,
tu
);
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment