diff options
author | Aaron <aaron@10gen.com> | 2010-01-26 12:38:26 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2010-01-26 12:38:26 -0800 |
commit | 9909d2959b33e3ec520dd6d1017b1c6c9c615e31 (patch) | |
tree | 1073917df58eee68e215484012a9c22ff7899674 /jstests/disk | |
parent | b151a6f5b16b3107d544e502572123925c239024 (diff) | |
download | mongo-9909d2959b33e3ec520dd6d1017b1c6c9c615e31.tar.gz |
MINOR remove unused test function
Diffstat (limited to 'jstests/disk')
-rw-r--r-- | jstests/disk/repair.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/jstests/disk/repair.js b/jstests/disk/repair.js index 200ffd53c12..6c8d81b3f9e 100644 --- a/jstests/disk/repair.js +++ b/jstests/disk/repair.js @@ -12,18 +12,6 @@ db = m.getDB( baseName ); db[ baseName ].save( {} ); db.runCommand( {repairDatabase:1, backupOriginalFiles:true} ); -escape = function( s ) { - ret = ""; - for( i in s ) { - if ( s[ i ] == "/" ) { - ret += "\/"; - } else { - ret += s[ i ]; - } - } - return ret; -} - files = listFiles( dbpath ); for( f in files ) { assert( ! new RegExp( "^" + dbpath + "backup_" ).test( files[ f ].name ), "backup dir in dbpath" ); |