Skip to content

Commit

Permalink
Move preparation process to top block
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 5, 2014
1 parent 4115072 commit b7462de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/droonga/catalog/version2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ def slices(node)
volume.slices.each do |slice|
volume_address = slice.volume.address
if volume_address.node == node
migrate_database_location(device, volume_address.name)

path = File.join([device, Path.databases.basename.to_s, volume_address.name, "db"])
path = Pathname(path).expand_path(base_path)
migrate_database_location(device, volume_address.name)
options = {
:dataset => dataset_name,
:database => path.to_s,
Expand Down

0 comments on commit b7462de

Please sign in to comment.