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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
947abbab
Commit
947abbab
authored
Jun 03, 2004
by
ndbdev@ndbmaster.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup connect string
parent
9bdbd631
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ndb/test/run-test/main.cpp
ndb/test/run-test/main.cpp
+7
-7
No files found.
ndb/test/run-test/main.cpp
View file @
947abbab
...
@@ -377,6 +377,7 @@ setup_config(atrt_config& config){
...
@@ -377,6 +377,7 @@ setup_config(atrt_config& config){
int
lineno
=
0
;
int
lineno
=
0
;
char
buf
[
2048
];
char
buf
[
2048
];
BaseString
connect_string
;
while
(
fgets
(
buf
,
2048
,
f
)){
while
(
fgets
(
buf
,
2048
,
f
)){
lineno
++
;
lineno
++
;
...
@@ -446,7 +447,6 @@ setup_config(atrt_config& config){
...
@@ -446,7 +447,6 @@ setup_config(atrt_config& config){
}
}
}
}
BaseString
connect_string
;
for
(
size_t
i
=
0
;
i
<
hosts
.
size
();
i
++
){
for
(
size_t
i
=
0
;
i
<
hosts
.
size
();
i
++
){
BaseString
&
tmp
=
hosts
[
i
];
BaseString
&
tmp
=
hosts
[
i
];
atrt_host
*
host
=
find
(
tmp
,
config
.
m_hosts
);
atrt_host
*
host
=
find
(
tmp
,
config
.
m_hosts
);
...
@@ -498,13 +498,13 @@ setup_config(atrt_config& config){
...
@@ -498,13 +498,13 @@ setup_config(atrt_config& config){
}
}
config
.
m_processes
.
push_back
(
proc
);
config
.
m_processes
.
push_back
(
proc
);
}
}
}
// Setup connect string
// Setup connect string
for
(
size_t
i
=
0
;
i
<
config
.
m_processes
.
size
();
i
++
){
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"
,
config
.
m_processes
[
i
].
m_proc
.
m_env
.
appfmt
(
" NDB_CONNECTSTRING=nodeid=%d%s"
,
i
+
1
,
connect_string
.
c_str
());
i
+
1
,
connect_string
.
c_str
());
}
}
}
end:
end:
fclose
(
f
);
fclose
(
f
);
...
...
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