summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-09-09 16:38:52 -0400
committerEliot Horowitz <eliot@10gen.com>2009-09-09 16:38:52 -0400
commit42a0e0f00e66217795466d37bd5f08b426995032 (patch)
tree7261b9f48fecb0c6a6f1148c20aaff6fcd022ced
parentfcf361cb2ca13a55b68b99e9a7af9dea48e18a30 (diff)
downloadmongo-42a0e0f00e66217795466d37bd5f08b426995032.tar.gz
more helpful comment
-rw-r--r--db/scanandorder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/scanandorder.h b/db/scanandorder.h
index 4bb95ffff73..2f08d875369 100644
--- a/db/scanandorder.h
+++ b/db/scanandorder.h
@@ -125,7 +125,7 @@ namespace mongo {
BSONObj k = order.getKeyFromObject(o);
if ( (int) best.size() < limit ) {
approxSize += k.objsize();
- uassert( "too much key data for sort() with no index", approxSize < 1 * 1024 * 1024 );
+ uassert( "too much key data for sort() with no index. add an index or specify a smaller limit", approxSize < 1 * 1024 * 1024 );
_add(k, o);
return;
}