Skip to content

Commit c1ae3e8

Browse files
committed
Renamed data.dir option to starter.data-dir
1 parent ba838d3 commit c1ae3e8

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changes from version 0.7.0 to master
22

33
- Added pass through options. See README.
4+
- Changed `--data.dir` option to `--starter.data-dir`
45

56
# Changes from version 0.6.0 to 0.7.0
67

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ the console.
6565
Additional servers can be added in the same way.
6666

6767
If two or more of the `arangodb` instances run on the same machine,
68-
one has to use the `--data.dir` option to let each use a different
68+
one has to use the `--starter.data-dir` option to let each use a different
6969
directory.
7070

7171
The `arangodb` program will find the ArangoDB executable and the
@@ -148,7 +148,7 @@ docker run -it --name=adb --rm -p 8528:8528 \
148148
Common options
149149
--------------
150150

151-
* `--data.dir=path`
151+
* `--starter.data-dir=path`
152152

153153
`path` is the directory in which all data is stored. (default "./")
154154

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ func init() {
108108
f.StringVar(&id, "starter.id", "", "Unique identifier of this peer")
109109
f.IntVar(&masterPort, "starter.port", service.DefaultMasterPort, "Port to listen on for other arangodb's to join")
110110
f.BoolVar(&allPortOffsetsUnique, "starter.unique-port-offsets", false, "If set, all peers will get a unique port offset. If false (default) only portOffset+peerAddress pairs will be unique.")
111-
112-
f.StringVar(&dataDir, "data.dir", getEnvVar("DATA_DIR", "."), "directory to store all data")
111+
f.StringVar(&dataDir, "starter.data-dir", getEnvVar("DATA_DIR", "."), "directory to store all data the starter generates (and holds actual database directories)")
113112

114113
f.BoolVar(&verbose, "log.verbose", false, "Turn on debug logging")
115114

@@ -190,7 +189,8 @@ var (
190189
"startCoordinator": "cluster.start-coordinator",
191190
"startDBserver": "cluster.start-dbserver",
192191
"agencySize": "cluster.agency-size",
193-
"dataDir": "data.dir",
192+
"dataDir": "starter.data-dir",
193+
"data.dir": "starter.data-dir",
194194
"verbose": "log.verbose",
195195
"arangod": "server.arangod",
196196
"jsDir": "server.js-dir",

service/runner_process.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (r *processRunner) CreateStartArangodbCommand(myDataDir string, index int,
112112
} else {
113113
dataDir = fmt.Sprintf("./db%d", index)
114114
}
115-
return fmt.Sprintf("arangodb --data.dir=%s --starter.join %s", dataDir, addr)
115+
return fmt.Sprintf("arangodb --starter.data-dir=%s --starter.join %s", dataDir, addr)
116116
}
117117

118118
// Cleanup after all processes are dead and have been cleaned themselves

0 commit comments

Comments
 (0)