Skip to content

Commit 57b5643

Browse files
committed
Use min_record instead of removed first_record in index-level-summary.
Also, ensure level is specified when using index-level-summary.
1 parent 7c53042 commit 57b5643

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/innodb_space

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ def index_level_summary(index, level)
10311031
page.record_space,
10321032
page.free_space,
10331033
page.records,
1034-
page.first_record.key_string,
1034+
page.min_record.key_string,
10351035
]
10361036
end
10371037
end
@@ -1375,6 +1375,10 @@ if /-list-iterate$/.match(mode) and !@options.list
13751375
usage 1, "List name must be specified using -L/--list"
13761376
end
13771377

1378+
if /-level-/.match(mode) and !@options.level
1379+
usage 1, "Level must be specified using -l/--level"
1380+
end
1381+
13781382
if [
13791383
"index-recurse",
13801384
"index-record-offsets",

0 commit comments

Comments
 (0)