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
aea0e125
Commit
aea0e125
authored
7 years ago
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trx_sys_read_wsrep_checkpoint(): Return whether a checkpoint is present
parent
cd623508
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
storage/innobase/include/trx0sys.h
storage/innobase/include/trx0sys.h
+5
-5
storage/innobase/trx/trx0sys.cc
storage/innobase/trx/trx0sys.cc
+7
-5
No files found.
storage/innobase/include/trx0sys.h
View file @
aea0e125
...
...
@@ -255,11 +255,11 @@ trx_sys_update_wsrep_checkpoint(
trx_sysf_t
*
sys_header
,
/*!< in: sys_header */
mtr_t
*
mtr
);
/*!< in: mtr */
void
/** Read WSREP checkpoint XID from sys header. */
trx_sys_read_wsrep_checkpoint
(
/*==========================*/
XID
*
xid
);
/*!< out: WSREP XID */
/** Read WSREP checkpoint XID from sys header.
@param[out] xid WSREP XID
@return whether the checkpoint was present */
bool
trx_sys_read_wsrep_checkpoint
(
XID
*
xid
);
#endif
/* WITH_WSREP */
/** Initializes the tablespace tag system. */
...
...
This diff is collapsed.
Click to expand it.
storage/innobase/trx/trx0sys.cc
View file @
aea0e125
...
...
@@ -349,10 +349,11 @@ trx_sys_update_wsrep_checkpoint(
}
void
trx_sys_read_wsrep_checkpoint
(
/*==========================*/
XID
*
xid
)
/** Read WSREP checkpoint XID from sys header.
@param[out] xid WSREP XID
@return whether the checkpoint was present */
bool
trx_sys_read_wsrep_checkpoint
(
XID
*
xid
)
{
trx_sysf_t
*
sys_header
;
mtr_t
mtr
;
...
...
@@ -372,7 +373,7 @@ trx_sys_read_wsrep_checkpoint(
memcpy
(
xid
->
data
+
24
,
&
seqno
,
sizeof
(
long
long
));
xid
->
formatID
=
-
1
;
mtr_commit
(
&
mtr
);
return
;
return
false
;
}
xid
->
formatID
=
(
int
)
mach_read_from_4
(
...
...
@@ -389,6 +390,7 @@ trx_sys_read_wsrep_checkpoint(
XIDDATASIZE
);
mtr_commit
(
&
mtr
);
return
true
;
}
#endif
/* WITH_WSREP */
...
...
This diff is collapsed.
Click to expand it.
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