diff options
author | Scott Hernandez <scotthernandez@gmail.com> | 2013-02-28 18:19:47 -0500 |
---|---|---|
committer | Scott Hernandez <scotthernandez@gmail.com> | 2013-02-28 18:19:47 -0500 |
commit | 6ea3fb90c6a90cad47501c4581c7206545f5e3f3 (patch) | |
tree | 69d4d43ec16894dd18855337028568abbfecbe9a /jstests/tool/dumprestore7.js | |
parent | e63cc1987e8e69e53158a02f393b5a8c8993f492 (diff) | |
download | mongo-6ea3fb90c6a90cad47501c4581c7206545f5e3f3.tar.gz |
SERVER-7718: JS Timestamp constructor now in seconds (not millis anymore)
Diffstat (limited to 'jstests/tool/dumprestore7.js')
-rw-r--r-- | jstests/tool/dumprestore7.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/jstests/tool/dumprestore7.js b/jstests/tool/dumprestore7.js index 2f129b3fa97..a860b91f415 100644 --- a/jstests/tool/dumprestore7.js +++ b/jstests/tool/dumprestore7.js @@ -43,9 +43,7 @@ var master = replTest.getMaster(); step("try mongodump with $timestamp"); var data = "/data/db/dumprestore7-dump1/"; -// We need to divide by 1000 here because the JSON parser interprets the first field of timestamps -// as seconds while the shell interprets them as milliseconds. See SERVER-7718. -var query = "{\"ts\":{\"$gt\":{\"$timestamp\" : {\"t\":"+ time.ts.t / 1000 + ",\"i\":" + time.ts.i +" }}}}"; +var query = "{\"ts\":{\"$gt\":{\"$timestamp\" : {\"t\":"+ time.ts.t + ",\"i\":" + time.ts.i +" }}}}"; runMongoProgram( "mongodump", "--host", "127.0.0.1:"+replTest.ports[0], "--db", "local", "--collection", "oplog.rs", "--query", query, "--out", data ); |