mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 08:34:28 +02: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:
parent
98fc6b923f
commit
1c8de231a3
3 changed files with 20 additions and 14 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue