summaryrefslogtreecommitdiff
path: root/db/instance.cpp
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2010-02-03 17:51:06 -0500
committerDwight <dmerriman@gmail.com>2010-02-03 17:51:06 -0500
commit2c5dbf323c2dec2c73c40bb6f609e4430ad3c542 (patch)
tree1beb5834aec4f81a6cbcff67b4ead33fe382b8d5 /db/instance.cpp
parent1dcb888bc9585be67759907fd1966e884d3b3b93 (diff)
downloadmongo-2c5dbf323c2dec2c73c40bb6f609e4430ad3c542.tar.gz
comment
Diffstat (limited to 'db/instance.cpp')
-rw-r--r--db/instance.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/db/instance.cpp b/db/instance.cpp
index 1b3a2c1db33..e0d722ef61a 100644
--- a/db/instance.cpp
+++ b/db/instance.cpp
@@ -468,7 +468,10 @@ namespace mongo {
bool multi = flags & UpdateOption_Multi;
{
string s = query.toString();
- /* todo: we shouldn't do all this ss stuff when we don't need it, it will slow us down. */
+ /* todo: we shouldn't do all this ss stuff when we don't need it, it will slow us down.
+ instead, let's just story the query BSON in the debug object, and it can toString()
+ lazily
+ */
op.debug().str << " query: " << s;
op.setQuery(query);
}