summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-08-11 10:52:20 -0400
committerEliot Horowitz <eliot@10gen.com>2009-08-11 10:52:20 -0400
commita9e20d2dfd0b6234d782064d6e76a7ea88d3719d (patch)
tree937e4786485561f326df4234b506433bd9cebaad
parent043f15bbd7cbd1bb1c041335e594430e1f6e3e82 (diff)
downloadmongo-a9e20d2dfd0b6234d782064d6e76a7ea88d3719d.tar.gz
$snapshot in shell SERVER-227
-rw-r--r--shell/query.js6
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;