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
f5eb28f1
Commit
f5eb28f1
authored
Aug 17, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More testBackup fixes
parent
38e210dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
ndb/test/ndbapi/testBackup.cpp
ndb/test/ndbapi/testBackup.cpp
+6
-1
ndb/test/src/NdbBackup.cpp
ndb/test/src/NdbBackup.cpp
+1
-2
No files found.
ndb/test/ndbapi/testBackup.cpp
View file @
f5eb28f1
...
@@ -205,6 +205,11 @@ int runClearTable(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -205,6 +205,11 @@ int runClearTable(NDBT_Context* ctx, NDBT_Step* step){
return
NDBT_OK
;
return
NDBT_OK
;
}
}
int
runDropTable
(
NDBT_Context
*
ctx
,
NDBT_Step
*
step
){
GETNDB
(
step
)
->
getDictionary
()
->
dropTable
(
ctx
->
getTab
()
->
getName
());
return
NDBT_OK
;
}
#include "bank/Bank.hpp"
#include "bank/Bank.hpp"
int
runCreateBank
(
NDBT_Context
*
ctx
,
NDBT_Step
*
step
){
int
runCreateBank
(
NDBT_Context
*
ctx
,
NDBT_Step
*
step
){
...
@@ -408,7 +413,7 @@ TESTCASE("BackupOne",
...
@@ -408,7 +413,7 @@ TESTCASE("BackupOne",
INITIALIZER
(
runRestoreOne
);
INITIALIZER
(
runRestoreOne
);
VERIFIER
(
runVerifyOne
);
VERIFIER
(
runVerifyOne
);
FINALIZER
(
runClearTable
);
FINALIZER
(
runClearTable
);
FINALIZER
(
runDropTable
);
}
}
TESTCASE
(
"BackupBank"
,
TESTCASE
(
"BackupBank"
,
"Test that backup and restore works during transaction load
\n
"
"Test that backup and restore works during transaction load
\n
"
...
...
ndb/test/src/NdbBackup.cpp
View file @
f5eb28f1
...
@@ -149,13 +149,12 @@ NdbBackup::execRestore(bool _restore_data,
...
@@ -149,13 +149,12 @@ NdbBackup::execRestore(bool _restore_data,
ndbout
<<
"res: "
<<
res
<<
endl
;
ndbout
<<
"res: "
<<
res
<<
endl
;
snprintf
(
buf
,
255
,
"%sndb_restore -c
\"
nodeid=%d;
host=%s
\"
-n %d -b %d %s %s ."
,
snprintf
(
buf
,
255
,
"%sndb_restore -c
\"
host=%s
\"
-n %d -b %d %s %s ."
,
#if 1
#if 1
""
,
""
,
#else
#else
"valgrind --leak-check=yes -v "
"valgrind --leak-check=yes -v "
#endif
#endif
ownNodeId
,
addr
.
c_str
(),
addr
.
c_str
(),
_node_id
,
_node_id
,
_backup_id
,
_backup_id
,
...
...
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