summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-03-24 11:46:55 -0400
committerAaron <aaron@10gen.com>2009-03-24 11:46:55 -0400
commitca46791a7b1cf57286c2440de8265b24c908eba0 (patch)
tree994fa53b875a965dcf002096e9e6837d49b15bcf /db
parent8a54574b76b081437e796cb06ddcaf9581d89c6e (diff)
downloadmongo-ca46791a7b1cf57286c2440de8265b24c908eba0.tar.gz
Just exit if --only specified without --source
Diffstat (limited to 'db')
-rw-r--r--db/repl.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/db/repl.cpp b/db/repl.cpp
index de035fa5d10..eb98f163653 100644
--- a/db/repl.cpp
+++ b/db/repl.cpp
@@ -547,8 +547,12 @@ namespace mongo {
s.save();
}
}
- else {
- massert("--only requires use of --source", dashDashOnly.empty());
+ else {
+ try {
+ massert("--only requires use of --source", dashDashOnly.empty());
+ } catch ( ... ) {
+ exit( 40 );
+ }
}
if ( replPair ) {