Skip to content

Commit

Permalink
Merge pull request #318 from tychoish/rs-priority-consistency
Browse files Browse the repository at this point in the history
SERVER-7380: make uassert 13419 consistent with permitted priority value...
  • Loading branch information
IanWhalen committed Oct 23, 2012
2 parents d4f7ab9 + fa5d597 commit ea4a732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/db/repl/rs_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ namespace mongo {
mchk(_id >= 0 && _id <= 255);
mchk(priority >= 0 && priority <= 1000);
mchk(votes <= 100); // votes >= 0 because it is unsigned
uassert(13419, "priorities must be between 0.0 and 100.0", priority >= 0.0 && priority <= 100.0);
uassert(13419, "priorities must be between 0.0 and 1000", priority >= 0.0 && priority <= 1000);
uassert(13437, "slaveDelay requires priority be zero", slaveDelay == 0 || priority == 0);
uassert(13438, "bad slaveDelay value", slaveDelay >= 0 && slaveDelay <= 3600 * 24 * 366);
uassert(13439, "priority must be 0 when hidden=true", priority == 0 || !hidden);
Expand Down

0 comments on commit ea4a732

Please sign in to comment.