diff options
author | Eric Milkie <milkie@10gen.com> | 2012-06-20 11:31:07 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2012-06-20 11:31:14 -0400 |
commit | 4c3a53dad00c2686c4eeb0652990c920b86c182f (patch) | |
tree | a5b77b32cfe088b410bf1605ec1d8251d528445c /src/mongo/db/prefetch.cpp | |
parent | f724e2bac4acd71b1bd0954f7f9da8a32cee8960 (diff) | |
download | mongo-4c3a53dad00c2686c4eeb0652990c920b86c182f.tar.gz |
suppress exception output in prefetching
Diffstat (limited to 'src/mongo/db/prefetch.cpp')
-rw-r--r-- | src/mongo/db/prefetch.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/prefetch.cpp b/src/mongo/db/prefetch.cpp index 74ca3aea699..9ffcd045e0e 100644 --- a/src/mongo/db/prefetch.cpp +++ b/src/mongo/db/prefetch.cpp @@ -75,7 +75,7 @@ namespace mongo { fetchIndexInserters(/*out*/unusedKeys, inserter, nsd, indexNo, obj, unusedDl); } catch (const DBException& e) { - LOG(2) << "exception in prefetcher: " << e.what() << endl; + LOG(2) << "ignoring exception in prefetchIndexPages(): " << e.what() << endl; } unusedKeys.clear(); } @@ -87,8 +87,8 @@ namespace mongo { BSONObjBuilder builder; builder.append(_id); BSONObj result; - Client::ReadContext ctx( ns ); try { + Client::ReadContext ctx( ns ); if( Helpers::findById(cc(), ns, builder.done(), result) ) { volatile char _dummy_char; // Touch the first word on every page in order to fault it into memory @@ -99,8 +99,8 @@ namespace mongo { _dummy_char += *(result.objdata() + result.objsize()); } } - catch( AssertionException& ) { - log() << "ignoring assertion in prefetchRecord()" << endl; + catch(const DBException& e) { + LOG(2) << "ignoring exception in prefetchRecordPages(): " << e.what() << endl; } } } |