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
cb1fdf51
Commit
cb1fdf51
authored
Oct 06, 2006
by
mats@romeo.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to build on 64-bit systems where sizeof(unsigned long long)
> sizeof(unsigned long).
parent
93ea3261
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
sql/log.cc
sql/log.cc
+4
-7
No files found.
sql/log.cc
View file @
cb1fdf51
...
...
@@ -45,6 +45,7 @@ inline void operator delete[](void*, void*) { /* Do nothing */ }
#define MAX_LOG_BUFFER_SIZE 1024
#define MAX_USER_HOST_SIZE 512
#define MAX_TIME_SIZE 32
#define MY_OFF_T_UNDEF (~(my_off_t)0UL)
#define FLAGSTR(V,F) ((V)&(F)?#F" ":"")
...
...
@@ -85,13 +86,9 @@ char *make_default_log_name(char *buff,const char* log_ext)
*/
class
binlog_trx_data
{
public:
enum
{
UNDEF_POS
=
~
(
my_off_t
)
0
};
binlog_trx_data
()
#ifdef HAVE_ROW_BASED_REPLICATION
:
m_pending
(
0
),
before_stmt_pos
(
UNDEF_POS
)
:
m_pending
(
0
),
before_stmt_pos
(
MY_OFF_T_UNDEF
)
#endif
{
trans_log
.
end_of_file
=
max_binlog_cache_size
;
...
...
@@ -139,7 +136,7 @@ public:
if
(
!
empty
())
truncate
(
0
);
#ifdef HAVE_ROW_BASED_REPLICATION
before_stmt_pos
=
UNDEF_POS
;
before_stmt_pos
=
MY_OFF_T_UNDEF
;
#endif
trans_log
.
end_of_file
=
max_binlog_cache_size
;
}
...
...
@@ -3338,7 +3335,7 @@ THD::binlog_start_trans_and_stmt()
DBUG_PRINT
(
"enter"
,
(
"trx_data->before_stmt_pos=%u"
,
trx_data
->
before_stmt_pos
));
if
(
trx_data
==
NULL
||
trx_data
->
before_stmt_pos
==
binlog_trx_data
::
UNDEF_POS
)
trx_data
->
before_stmt_pos
==
MY_OFF_T_UNDEF
)
{
/*
The call to binlog_trans_log_savepos() might create the trx_data
...
...
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