diff options
author | Dwight <dmerriman@gmail.com> | 2010-02-03 17:51:06 -0500 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2010-02-03 17:51:06 -0500 |
commit | 2c5dbf323c2dec2c73c40bb6f609e4430ad3c542 (patch) | |
tree | 1beb5834aec4f81a6cbcff67b4ead33fe382b8d5 /db/instance.cpp | |
parent | 1dcb888bc9585be67759907fd1966e884d3b3b93 (diff) | |
download | mongo-2c5dbf323c2dec2c73c40bb6f609e4430ad3c542.tar.gz |
comment
Diffstat (limited to 'db/instance.cpp')
-rw-r--r-- | db/instance.cpp | 5 |
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); } |