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
0ba08ecf
Commit
0ba08ecf
authored
Apr 24, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #18935 restore of apply_status table fails using old ndb backup
parent
b4fd92f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
mysql-test/r/ndb_restore.result
mysql-test/r/ndb_restore.result
+6
-0
mysql-test/t/ndb_restore.test
mysql-test/t/ndb_restore.test
+4
-2
No files found.
mysql-test/r/ndb_restore.result
View file @
0ba08ecf
...
...
@@ -528,6 +528,9 @@ SELECT * FROM SYSTEM_VALUES ORDER BY SYSTEM_VALUES_ID;
SYSTEM_VALUES_ID VALUE
0 4767
1 6
SELECT * FROM cluster.apply_status WHERE server_id=0;
server_id epoch
0 314
TRUNCATE GL;
TRUNCATE ACCOUNT;
TRUNCATE TRANSACTION;
...
...
@@ -579,4 +582,7 @@ SELECT * FROM SYSTEM_VALUES ORDER BY SYSTEM_VALUES_ID;
SYSTEM_VALUES_ID VALUE
0 2297
1 5
SELECT * FROM cluster.apply_status WHERE server_id=0;
server_id epoch
0 331
DROP DATABASE BANK;
mysql-test/t/ndb_restore.test
View file @
0ba08ecf
...
...
@@ -384,12 +384,13 @@ DROP DATABASE IF EXISTS BANK;
CREATE
DATABASE
BANK
default
charset
=
latin1
default
collate
=
latin1_bin
;
USE
BANK
;
--
exec
$NDB_TOOLS_DIR
/
ndb_restore
--
no
-
defaults
-
b
1
-
n
1
-
p
1
-
m
-
r
$MYSQL_TEST_DIR
/
std_data
/
ndb_backup51
>>
$NDB_TOOLS_OUTPUT
--
exec
$NDB_TOOLS_DIR
/
ndb_restore
--
no
-
defaults
-
b
1
-
n
2
-
p
1
-
r
$MYSQL_TEST_DIR
/
std_data
/
ndb_backup51
>>
$NDB_TOOLS_OUTPUT
--
exec
$NDB_TOOLS_DIR
/
ndb_restore
--
no
-
defaults
-
e
-
b
1
-
n
2
-
p
1
-
r
$MYSQL_TEST_DIR
/
std_data
/
ndb_backup51
>>
$NDB_TOOLS_OUTPUT
SHOW
TABLES
;
SELECT
*
FROM
GL
ORDER
BY
TIME
,
ACCOUNT_TYPE
;
SELECT
*
FROM
ACCOUNT
ORDER
BY
ACCOUNT_ID
;
SELECT
COUNT
(
*
)
FROM
TRANSACTION
;
SELECT
*
FROM
SYSTEM_VALUES
ORDER
BY
SYSTEM_VALUES_ID
;
SELECT
*
FROM
cluster
.
apply_status
WHERE
server_id
=
0
;
#
# verify restore of 5.0 backup
...
...
@@ -402,9 +403,10 @@ TRUNCATE TRANSACTION;
TRUNCATE
SYSTEM_VALUES
;
TRUNCATE
ACCOUNT_TYPE
;
--
exec
$NDB_TOOLS_DIR
/
ndb_restore
--
no
-
defaults
-
b
1
-
n
1
-
p
1
-
r
$MYSQL_TEST_DIR
/
std_data
/
ndb_backup50
>>
$NDB_TOOLS_OUTPUT
--
exec
$NDB_TOOLS_DIR
/
ndb_restore
--
no
-
defaults
-
b
1
-
n
2
-
p
1
-
r
$MYSQL_TEST_DIR
/
std_data
/
ndb_backup50
>>
$NDB_TOOLS_OUTPUT
--
exec
$NDB_TOOLS_DIR
/
ndb_restore
--
no
-
defaults
-
e
-
b
1
-
n
2
-
p
1
-
r
$MYSQL_TEST_DIR
/
std_data
/
ndb_backup50
>>
$NDB_TOOLS_OUTPUT
SELECT
*
FROM
GL
ORDER
BY
TIME
,
ACCOUNT_TYPE
;
SELECT
*
FROM
ACCOUNT
ORDER
BY
ACCOUNT_ID
;
SELECT
COUNT
(
*
)
FROM
TRANSACTION
;
SELECT
*
FROM
SYSTEM_VALUES
ORDER
BY
SYSTEM_VALUES_ID
;
SELECT
*
FROM
cluster
.
apply_status
WHERE
server_id
=
0
;
DROP
DATABASE
BANK
;
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