mirror of https://github.com/mongodb/mongo
12 lines
403 B
JavaScript
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));
|
|
}
|