1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

dequeued_count my_atomic to Atomic_counter

Also allocate inuse_relaylog with new rather than my_malloc(MY_ZEROFILL).
This commit is contained in:
Sergey Vojtovich
2020-03-25 17:27:42 +04:00
parent 98fc6b923f
commit 1c8de231a3
3 changed files with 20 additions and 14 deletions

View File

@ -1775,7 +1775,7 @@ rpl_parallel_thread::inuse_relaylog_refcount_update()
inuse_relaylog *ir= accumulated_ir_last;
if (ir)
{
my_atomic_add64(&ir->dequeued_count, accumulated_ir_count);
ir->dequeued_count+= accumulated_ir_count;
accumulated_ir_count= 0;
accumulated_ir_last= NULL;
}