diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-08-11 10:52:20 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-08-11 10:52:20 -0400 |
commit | a9e20d2dfd0b6234d782064d6e76a7ea88d3719d (patch) | |
tree | 937e4786485561f326df4234b506433bd9cebaad | |
parent | 043f15bbd7cbd1bb1c041335e594430e1f6e3e82 (diff) | |
download | mongo-a9e20d2dfd0b6234d782064d6e76a7ea88d3719d.tar.gz |
$snapshot in shell SERVER-227
-rw-r--r-- | shell/query.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/query.js b/shell/query.js index 1933c68ef98..8989f71c866 100644 --- a/shell/query.js +++ b/shell/query.js @@ -191,6 +191,12 @@ DBQuery.prototype.explain = function(){ return n.next(); } +DBQuery.prototype.snapshot = function(){ + this._ensureSpecial(); + this._query.$snapshot = true; + return this; + } + DBQuery.prototype.shellPrint = function(){ try { var n = 0; |