summaryrefslogtreecommitdiff
path: root/jstests/disk
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-04-08 14:41:05 -0400
committerDavid Storch <david.storch@10gen.com>2015-04-09 16:43:49 -0400
commit374438c9134e6e31322b05c8ab4c5967d97bf3eb (patch)
tree07e626f2c197b75e2e97c93b7bb16ca8d73116ef /jstests/disk
parent8f7ad88b463c5dea8bca8d8e0626fa80f35e3a47 (diff)
downloadmongo-374438c9134e6e31322b05c8ab4c5967d97bf3eb.tar.gz
SERVER-17718 deprecate showDiskLoc()
The showDiskLoc() shell helper is now an alias for showRecordId(). The server still accepts $showDiskLoc for OP_QUERY style find operations. For find command, the showDiskLoc argument has been renamed to showRecordId. Also renames the $diskLoc field returned in the resulting documents to $recordId. Unlike $diskLoc, the $recordId field reports a single 64 bit integer rather than separately reporting the high-order 32 bits and low-order 32 bits, which have MMAPv1-specific meaning of file and offset.
Diffstat (limited to 'jstests/disk')
-rw-r--r--jstests/disk/quota2.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/disk/quota2.js b/jstests/disk/quota2.js
index 95639d7cc4c..a53e6dec6b8 100644
--- a/jstests/disk/quota2.js
+++ b/jstests/disk/quota2.js
@@ -26,7 +26,8 @@ for( i = 0; i < n; ++i ) {
c = db[ ''+i ];
res = c.insert({ b: big });
if( !res.hasWriteError() ) {
- assert.eq( 0, c.find()._addSpecial( "$showDiskLoc", true )[ 0 ].$diskLoc.file );
+ var recordId = c.find().showRecord()[0].$recordId;
+ assert.eq(0, recordId >> 32);
}
}