摘要:
repmgr/repmgr_net.c, __repmgr_send(): 做send_broadcast, 然后根据policy 对DB_REP_PERMANENT的处理 __repmgr_send_broadcast(): 对每个site, send_connection(). MASTER 发 阅读全文
摘要:
代码: wiredtiger-2.8.0/src/os_posix/os_mtx_rw.c rw锁结构 要加锁, 先领号. 即 (读lock.users, lock.users++), 原子操作. 当领的号 与 当前 服务的 lock.writers 同, 则申请 w锁成功; 与当前 服务的 loc 阅读全文
摘要:
http://www.drdobbs.com/lock-free-data-structures-with-hazard-po/184401890 memory deallocation lock-free session.h support/hazard.c __wt_hazard_set() / 阅读全文