mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
Merely having MONGO_OPLOG_URL set makes Meteor start an OpLog tail at boot (a tailable+awaitData cursor on local.oplog.rs) regardless of the reactivity order, and on FerretDB that tail polls the database continuously -- pinning CPU even with no clients connected. The polling-only branch of each launcher set METEOR_REACTIVITY_ORDER=polling but left an already-set MONGO_OPLOG_URL in place, so "polling only" still tailed the OpLog. Every FerretDB launcher (snap wekan-control, bundled start-wekan.sh, Docker wekan-entrypoint.sh, Sandstorm start.js) now actively clears MONGO_OPLOG_URL in its polling-only branch, so choosing polling truly does no OpLog tailing. The OpLog-enabled (default) path is unchanged. Covered by tests/ferretdbOplog.test.cjs. This complements the FerretDB fork fix that stops awaitData from busy-polling the tail in the default OpLog mode (wekan/FerretDB, wekan/wekan#6498). Thanks to Alishara, bluetopaz1204, mueschel and xet7 ! Fixes #6498,