Permalink
Browse files

added assert for valid w values

  • Loading branch information...
1 parent 087253b commit 07b2553a1b49f7cdd9f21cb1c4b1f417f224b81a @erh erh committed May 25, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 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;
}

0 comments on commit 07b2553

Please sign in to comment.