Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e22b3f24
Commit
e22b3f24
authored
Jun 02, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update atrt to use new names of binaries
parent
783c4f08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
ndb/test/run-test/main.cpp
ndb/test/run-test/main.cpp
+19
-8
No files found.
ndb/test/run-test/main.cpp
View file @
e22b3f24
...
...
@@ -446,11 +446,14 @@ setup_config(atrt_config& config){
}
}
BaseString
connect_string
;
for
(
size_t
i
=
0
;
i
<
hosts
.
size
();
i
++
){
BaseString
&
tmp
=
hosts
[
i
];
atrt_host
*
host
=
find
(
tmp
,
config
.
m_hosts
);
BaseString
&
dir
=
host
->
m_base_dir
;
const
int
index
=
config
.
m_processes
.
size
()
+
1
;
atrt_process
proc
;
proc
.
m_index
=
index
;
proc
.
m_host
=
host
;
...
...
@@ -458,8 +461,8 @@ setup_config(atrt_config& config){
proc
.
m_proc
.
m_type
=
"temporary"
;
proc
.
m_proc
.
m_owner
=
"atrt"
;
proc
.
m_proc
.
m_group
=
"group"
;
proc
.
m_proc
.
m_cwd
.
assign
(
host
->
m_base_
dir
).
append
(
"/run/"
);
proc
.
m_proc
.
m_env
.
ass
ign
(
"LD_LIBRARY_PATH="
).
append
(
host
->
m_base_dir
).
append
(
"/lib"
);
proc
.
m_proc
.
m_cwd
.
assign
(
dir
).
append
(
"/run/"
);
proc
.
m_proc
.
m_env
.
ass
fmt
(
"LD_LIBRARY_PATH=%s/lib/mysql"
,
dir
.
c_str
()
);
proc
.
m_proc
.
m_stdout
=
"log.out"
;
proc
.
m_proc
.
m_stderr
=
"2>&1"
;
proc
.
m_proc
.
m_runas
=
proc
.
m_host
->
m_user
;
...
...
@@ -468,16 +471,18 @@ setup_config(atrt_config& config){
proc
.
m_ndb_mgm_port
=
g_default_base_port
;
if
(
split1
[
0
]
==
"mgm"
){
proc
.
m_type
=
atrt_process
::
NDB_MGM
;
proc
.
m_proc
.
m_name
.
assfmt
(
"%d-%s"
,
index
,
"ndb_mgm"
);
proc
.
m_proc
.
m_path
.
assign
(
host
->
m_base_dir
).
append
(
"/bin/mgmtsrvr
"
);
proc
.
m_proc
.
m_name
.
assfmt
(
"%d-%s"
,
index
,
"ndb_mgm
d
"
);
proc
.
m_proc
.
m_path
.
assign
(
dir
).
append
(
"/libexec/ndb_mgmd
"
);
proc
.
m_proc
.
m_args
=
"-n -c initconfig.txt"
;
proc
.
m_proc
.
m_cwd
.
appfmt
(
"%d.ndb_mgm"
,
index
);
proc
.
m_proc
.
m_cwd
.
appfmt
(
"%d.ndb_mgmd"
,
index
);
connect_string
.
appfmt
(
";host=%s:%d"
,
proc
.
m_hostname
.
c_str
(),
proc
.
m_ndb_mgm_port
);
}
else
if
(
split1
[
0
]
==
"ndb"
){
proc
.
m_type
=
atrt_process
::
NDB_DB
;
proc
.
m_proc
.
m_name
.
assfmt
(
"%d-%s"
,
index
,
"ndb
_db
"
);
proc
.
m_proc
.
m_path
.
assign
(
host
->
m_base_dir
).
append
(
"/bin/ndb
"
);
proc
.
m_proc
.
m_name
.
assfmt
(
"%d-%s"
,
index
,
"ndb
d
"
);
proc
.
m_proc
.
m_path
.
assign
(
dir
).
append
(
"/libexec/ndbd
"
);
proc
.
m_proc
.
m_args
=
"-i -n"
;
proc
.
m_proc
.
m_cwd
.
appfmt
(
"%d.ndb
_db
"
,
index
);
proc
.
m_proc
.
m_cwd
.
appfmt
(
"%d.ndb
d
"
,
index
);
}
else
if
(
split1
[
0
]
==
"api"
){
proc
.
m_type
=
atrt_process
::
NDB_API
;
proc
.
m_proc
.
m_name
.
assfmt
(
"%d-%s"
,
index
,
"ndb_api"
);
...
...
@@ -493,6 +498,12 @@ setup_config(atrt_config& config){
}
config
.
m_processes
.
push_back
(
proc
);
}
// Setup connect string
for
(
size_t
i
=
0
;
i
<
config
.
m_processes
.
size
();
i
++
){
config
.
m_processes
[
i
].
m_proc
.
m_env
.
appfmt
(
" NDB_CONNECTSTRING=nodeid=%d%s"
,
i
+
1
,
connect_string
.
c_str
());
}
}
end:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment