Files
mongo/jstests/libs/oplog_truncation_util.js
Zac 591928c619 SERVER-108478 JS formatted by prettier and remove clang-format (#39656)
GitOrigin-RevId: 6c8f6aded47f260aa4f7c231b17dae3302cb1e04
2025-08-21 17:27:09 +00:00

12 lines
403 B
JavaScript

/**
* Asserts that for a given log, the oplog_cap_maintainer_thread has
* not been started and oplog sampling has not occurred.
*/
export function verifyOplogCapMaintainerThreadNotStarted(log) {
const threadRegex = new RegExp('"id":5295000');
const oplogTruncateMarkersRegex = new RegExp('"id":22382');
assert(!threadRegex.test(log));
assert(!oplogTruncateMarkersRegex.test(log));
}