Gopt broke wal_dir and snap_dir: they are no longer relative to work_dir

Bug #726778 reported by Kostja Osipov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tarantool
Fix Released
High
Kostja Osipov
1.3
Fix Released
High
Kostja Osipov

Bug Description

After introduction of gopt, Tarantool main() chdir's to the working directory only after
option parsing, inlcuding --init-storage option. As a result, work_dir no longer applies
to --init-storage.

For example, provided the following directory layout:

/bug
/bug/snaps
/bug/xlogs

The following .cfg is not working correctly with --init-storage:
--quote: tarantool.cfg
slab_alloc_arena = 0.1

pid_file = "box.pid"

work_dir = "bug"
snap_dir = "snaps"
wal_dir = "xlogs"

logger="tee -a tarantool.log"

primary_port = 33013
secondary_port = 33014
admin_port = 33015

rows_per_wal = 50

namespace[0].enabled = 1
namespace[0].index[0].type = "HASH"
namespace[0].index[0].unique = 1
namespace[0].index[0].key_field[0].fieldno = 0
namespace[0].index[0].key_field[0].type = "NUM"
--end quote

Tags: regression
Revision history for this message
Kostja Osipov (kostja) wrote :

Imported from JIRA-MY-1194.

Changed in tarantool:
importance: Undecided → High
assignee: nobody → Kostja Osipov (kostja)
milestone: none → 1.3.5
status: New → In Progress
Kostja Osipov (kostja)
Changed in tarantool:
status: In Progress → Fix Committed
Kostja Osipov (kostja)
tags: added: regression
Kostja Osipov (kostja)
Changed in tarantool:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.