diff options
Diffstat (limited to 'jstests/slowNightly/dur_remove_old_journals.js')
-rw-r--r-- | jstests/slowNightly/dur_remove_old_journals.js | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/jstests/slowNightly/dur_remove_old_journals.js b/jstests/slowNightly/dur_remove_old_journals.js index 3c57c12..1e81bee 100644 --- a/jstests/slowNightly/dur_remove_old_journals.js +++ b/jstests/slowNightly/dur_remove_old_journals.js @@ -33,20 +33,19 @@ sleep(sleepSecs*1000); files = listFiles(PATH + "/journal") printjson(files); -
-var nfiles = 0;
-files.forEach(function (file) {
- assert.eq('string', typeof (file.name)); // sanity checking
- if (/prealloc/.test(file.name)) {
- ;
- }
- else {
- nfiles++;
- assert(!(/j\._[01]/.test(file.name)), "Old journal file still exists: " + file.name);
- }
-})
-
-assert.eq(2, nfiles); // j._2 and lsn
+ +var nfiles = 0; +files.forEach(function (file) { + assert.eq('string', typeof (file.name)); // sanity checking + if (/prealloc/.test(file.name)) { + ; + } + else { + nfiles++; + } +}) + +assert.eq(2, nfiles); // latest journal file and lsn stopMongod(30001); |