Flush logs and lock tables order
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mylvmbackup |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
In
http://
flushing binary log is done in "preflush" before locking tables "flush_tables":
run_hook ("preflush");
flush_
create_
run_hook ("presnapshot");
$snapshot_
Why not to flush logs ("preflush") after tables are locked ("flush_tables") and have posfile to point to the beginning of next binlog file? We can see this (correct?) order on
http://
http://
Now it is possible to have some changes recorded in new binlog file between preflush and flush_tables which probably is less elegant/
One more thing; in
http://
there is
"
If you use InnoDB tables exclusively, you may also want to consider to include
the option I<--skip_
this case unnecessary flushing of buffers.
"
but using this option does not stop database InnoDB write activity probably and binlog may change between pos file creation and lvm snap which may be a problem?
Please verify and fix.
Regards,
Pawel
IB Development Team
https:/