RRejun Philipfeat: add timestamp option to debug
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(model+connection): return MongoDB BulkWriteResult instance even if no valid ops | 1 年前 | |
feat: add timestamp option to debug | 6 个月前 | |
fix(connection): snapshot Date in heartbeat handler and flush queue on recovery (gh-16183) The heartbeat handler in drivers/node-mongodb-native/connection.js used the global Date.now() instead of a snapshotted copy, causing fake timers to write incorrect timestamps to _lastHeartbeatAt. Additionally, when a stale heartbeat caused readyState to report disconnected, buffered operations were never flushed because _readyState never actually changed — so no state change event fired. This extracts _flushQueue() from onOpen() and calls it from the heartbeat handler when the connection is no longer stale. | 6 个月前 | |
Comments | 1 年前 |