Skip to content

Commit

Permalink
Convert to string given not possible to cast and need to be pure Stri…
Browse files Browse the repository at this point in the history
…ng not Array to be accepted by basename
  • Loading branch information
Tusamarco committed Jan 8, 2016
1 parent 3e7afb7 commit 067b47d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/innodb_space
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ def space_index_pages_free_plot(space, image, start_page)
end

image_file = image + "_free.png"

# Aim for one horizontal pixel per extent, but min 1k and max 10k width.
image_width = [10000, [1000, space.pages / space.pages_per_extent].max].min

Expand Down Expand Up @@ -1813,8 +1814,8 @@ when "space-summary"
space_summary(space, @options.page || 0)
when "space-index-pages-summary"
space_index_pages_summary(space, @options.page || 0)
when "space-index-pages-free-plot"
name = File.basename(@options.space_file).sub(".ibd", "")
when "space-index-pages-free-plot"
name = File.basename(@options.space_file.first.to_s).sub(".ibd", "")
space_index_pages_free_plot(space, name, @options.page || 0)
when "space-page-type-regions"
space_page_type_regions(space, @options.page || 0)
Expand Down

0 comments on commit 067b47d

Please sign in to comment.