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
b5174eca
Commit
b5174eca
authored
Dec 09, 2020
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: DBUG_ASSERT && log.cc
parent
e87a8efd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
sql/log.cc
sql/log.cc
+16
-12
No files found.
sql/log.cc
View file @
b5174eca
...
...
@@ -393,12 +393,12 @@ class binlog_cache_data
In the future, we can refactor this and change it to avoid
the set_binlog_info.
*/
DBUG_ASSERT
(
saved_max_binlog_cache_size
==
0
&&
param_max_binlog_cache_size
!=
0
&&
ptr_binlog_cache_use
==
0
&&
param_ptr_binlog_cache_use
!=
0
&&
ptr_binlog_cache_disk_use
==
0
&&
param_ptr_binlog_cache_disk_use
!=
0
);
DBUG_ASSERT
(
saved_max_binlog_cache_size
==
0
);
DBUG_ASSERT
(
param_max_binlog_cache_size
!=
0
);
DBUG_ASSERT
(
ptr_binlog_cache_use
==
0
);
DBUG_ASSERT
(
param_ptr_binlog_cache_use
!=
0
);
DBUG_ASSERT
(
ptr_binlog_cache_disk_use
==
0
);
DBUG_ASSERT
(
param_ptr_binlog_cache_disk_use
!=
0
);
saved_max_binlog_cache_size
=
param_max_binlog_cache_size
;
ptr_binlog_cache_use
=
param_ptr_binlog_cache_use
;
...
...
@@ -1814,8 +1814,8 @@ binlog_flush_cache(THD *thd, binlog_cache_mngr *cache_mngr,
}
cache_mngr
->
reset
(
using_stmt
,
using_trx
);
DBUG_ASSERT
(
(
!
using_stmt
||
cache_mngr
->
stmt_cache
.
empty
())
&&
(
!
using_trx
||
cache_mngr
->
trx_cache
.
empty
()
));
DBUG_ASSERT
(
!
using_stmt
||
cache_mngr
->
stmt_cache
.
empty
());
DBUG_ASSERT
(
!
using_trx
||
cache_mngr
->
trx_cache
.
empty
(
));
DBUG_RETURN
(
error
);
}
...
...
@@ -9273,7 +9273,8 @@ int TC_LOG_MMAP::log_and_order(THD *thd, my_xid xid, bool all,
prev
=
queue
;
queue
=
next
;
}
DBUG_ASSERT
(
prev
==
&
entry
&&
prev
->
thd
==
thd
);
DBUG_ASSERT
(
prev
==
&
entry
);
DBUG_ASSERT
(
prev
->
thd
==
thd
);
}
else
{
...
...
@@ -9367,7 +9368,8 @@ int TC_LOG_MMAP::open(const char *opt_name)
PAGE
*
pg
;
DBUG_ASSERT
(
total_ha_2pc
>
1
);
DBUG_ASSERT
(
opt_name
&&
opt_name
[
0
]);
DBUG_ASSERT
(
opt_name
);
DBUG_ASSERT
(
opt_name
[
0
]);
tc_log_page_size
=
my_getpagesize
();
...
...
@@ -9786,7 +9788,8 @@ int TC_LOG_MMAP::delete_entry(ulong cookie)
PAGE
*
p
=
pages
+
(
cookie
/
tc_log_page_size
);
my_xid
*
x
=
(
my_xid
*
)(
data
+
cookie
);
DBUG_ASSERT
(
x
>=
p
->
start
&&
x
<
p
->
end
);
DBUG_ASSERT
(
x
>=
p
->
start
);
DBUG_ASSERT
(
x
<
p
->
end
);
mysql_mutex_lock
(
&
p
->
lock
);
*
x
=
0
;
...
...
@@ -9931,7 +9934,8 @@ int TC_LOG_BINLOG::open(const char *opt_name)
int
error
=
1
;
DBUG_ASSERT
(
total_ha_2pc
>
1
);
DBUG_ASSERT
(
opt_name
&&
opt_name
[
0
]);
DBUG_ASSERT
(
opt_name
);
DBUG_ASSERT
(
opt_name
[
0
]);
if
(
!
my_b_inited
(
&
index_file
))
{
...
...
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