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
1af6e72e
Commit
1af6e72e
authored
Nov 18, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-clean
parents
a8ba534c
13710e86
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
10 deletions
+28
-10
ndb/src/mgmclient/CommandInterpreter.cpp
ndb/src/mgmclient/CommandInterpreter.cpp
+6
-1
ndb/tools/Makefile.am
ndb/tools/Makefile.am
+1
-1
ndb/tools/restore/restore_main.cpp
ndb/tools/restore/restore_main.cpp
+21
-8
No files found.
ndb/src/mgmclient/CommandInterpreter.cpp
View file @
1af6e72e
...
@@ -1386,7 +1386,7 @@ void
...
@@ -1386,7 +1386,7 @@ void
CommandInterpreter
::
executeDumpState
(
int
processId
,
const
char
*
parameters
,
CommandInterpreter
::
executeDumpState
(
int
processId
,
const
char
*
parameters
,
bool
all
)
bool
all
)
{
{
if
(
parameters
==
0
||
strlen
(
parameters
)
==
0
){
if
(
emptyString
(
parameters
)
){
ndbout
<<
"Expected argument"
<<
endl
;
ndbout
<<
"Expected argument"
<<
endl
;
return
;
return
;
}
}
...
@@ -1806,6 +1806,10 @@ CommandInterpreter::executeEventReporting(int processId,
...
@@ -1806,6 +1806,10 @@ CommandInterpreter::executeEventReporting(int processId,
const
char
*
parameters
,
const
char
*
parameters
,
bool
all
)
bool
all
)
{
{
if
(
emptyString
(
parameters
))
{
ndbout
<<
"Expected argument"
<<
endl
;
return
;
}
connect
();
connect
();
BaseString
tmp
(
parameters
);
BaseString
tmp
(
parameters
);
...
@@ -1906,6 +1910,7 @@ void
...
@@ -1906,6 +1910,7 @@ void
CommandInterpreter
::
executeAbortBackup
(
char
*
parameters
)
CommandInterpreter
::
executeAbortBackup
(
char
*
parameters
)
{
{
connect
();
connect
();
strtok
(
parameters
,
" "
);
strtok
(
parameters
,
" "
);
struct
ndb_mgm_reply
reply
;
struct
ndb_mgm_reply
reply
;
char
*
id
=
strtok
(
NULL
,
"
\0
"
);
char
*
id
=
strtok
(
NULL
,
"
\0
"
);
...
...
ndb/tools/Makefile.am
View file @
1af6e72e
...
@@ -26,7 +26,7 @@ ndb_select_all_SOURCES = select_all.cpp \
...
@@ -26,7 +26,7 @@ ndb_select_all_SOURCES = select_all.cpp \
../test/src/NDBT_ResultRow.cpp
\
../test/src/NDBT_ResultRow.cpp
\
$(tools_common_sources)
$(tools_common_sources)
ndb_select_count_SOURCES
=
select_count.cpp
$(tools_common_sources)
ndb_select_count_SOURCES
=
select_count.cpp
$(tools_common_sources)
ndb_restore_SOURCES
=
restore/main.cpp
\
ndb_restore_SOURCES
=
restore/
restore_
main.cpp
\
restore/consumer.cpp
\
restore/consumer.cpp
\
restore/consumer_restore.cpp
\
restore/consumer_restore.cpp
\
restore/consumer_printer.cpp
\
restore/consumer_printer.cpp
\
...
...
ndb/tools/restore/main.cpp
→
ndb/tools/restore/
restore_
main.cpp
View file @
1af6e72e
...
@@ -74,7 +74,7 @@ static struct my_option my_long_options[] =
...
@@ -74,7 +74,7 @@ static struct my_option my_long_options[] =
"No of parallel transactions during restore of data."
"No of parallel transactions during restore of data."
"(parallelism can be 1 to 1024)"
,
"(parallelism can be 1 to 1024)"
,
(
gptr
*
)
&
ga_nParallelism
,
(
gptr
*
)
&
ga_nParallelism
,
0
,
(
gptr
*
)
&
ga_nParallelism
,
(
gptr
*
)
&
ga_nParallelism
,
0
,
GET_INT
,
REQUIRED_ARG
,
128
,
0
,
0
,
0
,
0
,
0
},
GET_INT
,
REQUIRED_ARG
,
128
,
1
,
1024
,
0
,
1
,
0
},
{
"print"
,
256
,
"Print data and log to stdout"
,
{
"print"
,
256
,
"Print data and log to stdout"
,
(
gptr
*
)
&
_print
,
(
gptr
*
)
&
_print
,
0
,
(
gptr
*
)
&
_print
,
(
gptr
*
)
&
_print
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
@@ -120,6 +120,20 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -120,6 +120,20 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
case
'V'
:
case
'V'
:
print_version
();
print_version
();
exit
(
0
);
exit
(
0
);
case
'n'
:
if
(
ga_nodeId
==
0
)
{
printf
(
"Error in --nodeid,-n setting, see --help
\n
"
);
exit
(
1
);
}
break
;
case
'b'
:
if
(
ga_backupId
==
0
)
{
printf
(
"Error in --backupid,-b setting, see --help
\n
"
);
exit
(
1
);
}
break
;
case
'?'
:
case
'?'
:
usage
();
usage
();
exit
(
0
);
exit
(
0
);
...
@@ -131,11 +145,8 @@ readArguments(int *pargc, char*** pargv)
...
@@ -131,11 +145,8 @@ readArguments(int *pargc, char*** pargv)
{
{
const
char
*
load_default_groups
[]
=
{
"ndb_tools"
,
"ndb_restore"
,
0
};
const
char
*
load_default_groups
[]
=
{
"ndb_tools"
,
"ndb_restore"
,
0
};
load_defaults
(
"my"
,
load_default_groups
,
pargc
,
pargv
);
load_defaults
(
"my"
,
load_default_groups
,
pargc
,
pargv
);
if
(
handle_options
(
pargc
,
pargv
,
my_long_options
,
get_one_option
)
||
if
(
handle_options
(
pargc
,
pargv
,
my_long_options
,
get_one_option
))
ga_nodeId
==
0
||
{
ga_backupId
==
0
||
ga_nParallelism
<
1
||
ga_nParallelism
>
1024
)
{
exit
(
1
);
exit
(
1
);
}
}
...
@@ -343,7 +354,8 @@ main(int argc, char** argv)
...
@@ -343,7 +354,8 @@ main(int argc, char** argv)
if
(
res
<
0
)
if
(
res
<
0
)
{
{
err
<<
"Restore: An error occured while restoring data. Exiting... res="
<<
res
<<
endl
;
err
<<
"Restore: An error occured while restoring data. Exiting... "
<<
"res="
<<
res
<<
endl
;
return
-
1
;
return
-
1
;
}
}
...
@@ -369,7 +381,8 @@ main(int argc, char** argv)
...
@@ -369,7 +381,8 @@ main(int argc, char** argv)
}
}
if
(
res
<
0
)
if
(
res
<
0
)
{
{
err
<<
"Restore: An restoring the data log. Exiting... res="
<<
res
<<
endl
;
err
<<
"Restore: An restoring the data log. Exiting... res="
<<
res
<<
endl
;
return
-
1
;
return
-
1
;
}
}
logIter
.
validateFooter
();
//not implemented
logIter
.
validateFooter
();
//not implemented
...
...
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