Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added assert for valid w values

  • Loading branch information...
commit 07b2553a1b49f7cdd9f21cb1c4b1f417f224b81a 1 parent 087253b
@erh erh authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/mongo/db/repl_block.cpp
View
2  src/mongo/db/repl_block.cpp
@@ -134,6 +134,8 @@ namespace mongo {
return replicatedToNum(op, w.numberInt());
}
+ uassert( 16250 , "w has to be a string or a number" , w.type() == String );
+
if (!theReplSet) {
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.