Program received signal SIGINT, Interrupt. 0x00007f83751d342a in epoll_wait (epfd=8, events=0x55afd620a668, maxevents=1, timeout=299000) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 30 ../sysdeps/unix/sysv/linux/epoll_wait.c: No such file or directory. (gdb) Continuing.
Program received signal SIGINT, Interrupt. 0x00007f83751d342a in epoll_wait (epfd=8, events=0x55afd620a668, maxevents=1, timeout=169802) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30 30 in ../sysdeps/unix/sysv/linux/epoll_wait.c (gdb) signal SIGINT Continuing with signal SIGINT.
Breakpoint 1, HandleCheckpointerInterrupts () at /home/japin/Codes/postgresql/Debug/../src/backend/postmaster/checkpointer.c:545 (gdb)
接着,我们便可以跟踪后续的 checkpoint 执行流程,例如:
1 2 3 4 5 6 7
(gdb) b CreateCheckPoint Breakpoint 2 at 0x55afd4492083: file /home/japin/Codes/postgresql/Debug/../src/backend/access/transam/xlog.c, line 6441. (gdb) c Continuing.
Breakpoint 2, CreateCheckPoint (flags=32766) at /home/japin/Codes/postgresql/Debug/../src/backend/access/transam/xlog.c:6441