Bug #30793 | Add option to set the random seed in mysqlslap | ||
---|---|---|---|
Submitted: | 4 Sep 2007 13:19 | Modified: | 1 Feb 2008 18:15 |
Reporter: | Chad MILLER | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Tests | Severity: | S4 (Feature request) |
Version: | 5.2 | OS: | Any |
Assigned to: | Chad MILLER | CPU Architecture: | Any |
Tags: | Contribution |
[4 Sep 2007 13:19]
Chad MILLER
[4 Sep 2007 15:17]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/33641 ChangeSet@1.2591, 2007-09-04 11:15:32-04:00, cmiller@zippy.cornsilk.net +1 -0 Bug#30793: set random seed for mysqlslap Contributed patch from "mushuiliu". No CLA. Add a new parameter "set-random-seed", which takes an uint as an argument. If the parameter isn't used, then the random_seed is set from time() as usual. If it is used or if the value is zero, then it's set from that. Print the seed value in the output, so a run can be replayed.
[5 Sep 2007 19:08]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/33759 ChangeSet@1.2591, 2007-09-05 15:06:37-04:00, cmiller@zippy.cornsilk.net +1 -0 Bug#30793: set random seed for mysqlslap Contributed patch from "mushuiliu". No CLA. Add a new parameter "set-random-seed", which takes an uint as an argument. If the parameter isn't used or is used for value "0", then the random_seed is set from time() as usual. Print the seed value in the output, so a run can be replayed.
[5 Sep 2007 21:06]
Chad MILLER
Queued to Maint tree.
[29 Jan 2008 18:12]
Chad MILLER
Brian committed this to 6.0 several months ago, as part of a Google Summer of Code submission.
[1 Feb 2008 18:15]
Paul DuBois
Noted in 5.2.6 changelog. Added the --set-random-seed option to mysqlslap to enable a seed value to be provided for the randomizer.