- 论坛徽章:
- 9
|
原帖由 luanqibazao 于 2009-5-12 12:43 发表 ![]()
请教一下,不太懂!
flush log之后bin-log不是清空了吗?那slave从哪去读取flush log前的未同步的数据呢?
Closes and reopens all log files. If binary logging is enabled, the sequence number of the binary log file is incremented by one relative to the previous file. On Unix, this is the same thing as sending a SIGHUP signal to the mysqld server (except on some Mac OS X 10.3 versions where mysqld ignores SIGHUP and SIGQUIT). |
flush log 只是重新打开log文件的句柄,相当于把缓存的日志写入文件。
对于bin-log来说,flush log结束当前文件,并以顺序文件名创建一个新的日志文件。 |
|