summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rs_sync.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2013-05-03 10:27:07 -0400
committerRandolph Tan <randolph@10gen.com>2013-05-03 11:30:13 -0400
commite9f02a3676d816bf1b0190fcb83f8a6b6576e4c2 (patch)
treed5d3dcae18487176c8d562396f84ca7e28b0187b /src/mongo/db/repl/rs_sync.cpp
parenta9adef030bde00e872ee46e0ae5caec60a97a50e (diff)
downloadmongo-e9f02a3676d816bf1b0190fcb83f8a6b6576e4c2.tar.gz
Added const modifier to catch in rs_sync.cpp
Diffstat (limited to 'src/mongo/db/repl/rs_sync.cpp')
-rw-r--r--src/mongo/db/repl/rs_sync.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/repl/rs_sync.cpp b/src/mongo/db/repl/rs_sync.cpp
index 553235470dd..339edc528cd 100644
--- a/src/mongo/db/repl/rs_sync.cpp
+++ b/src/mongo/db/repl/rs_sync.cpp
@@ -144,7 +144,7 @@ namespace replset {
if (!st->syncApply(*it, convertUpdatesToUpserts)) {
fassertFailedNoTrace(16359);
}
- } catch (DBException& e) {
+ } catch (const DBException& e) {
error() << "writer worker caught exception: " << causedBy(e)
<< " on: " << it->toString() << endl;
fassertFailedNoTrace(16360);
@@ -176,7 +176,7 @@ namespace replset {
// subsequently got deleted and no longer exists on the Sync Target at all
}
}
- catch (DBException& e) {
+ catch (const DBException& e) {
error() << "exception: " << causedBy(e) << " on: " << it->toString() << endl;
fassertFailedNoTrace(16361);
}
@@ -746,7 +746,7 @@ namespace replset {
try {
_syncThread();
}
- catch(DBException& e) {
+ catch(const DBException& e) {
sethbmsg(str::stream() << "syncThread: " << e.toString());
sleepsecs(10);
}
@@ -897,7 +897,7 @@ namespace replset {
}
LOG(2) << "now last is " << slave->last.toString() << rsLog;
}
- catch (DBException& e) {
+ catch (const DBException& e) {
// we'll be back
LOG(2) << "replSet ghost sync error: " << e.what() << " for "
<< slave->slave->fullName() << rsLog;