mongodb/mongo — pull request #253 by e-siedler (2012-06-27 03:10:50+00:00)
Title: SERVER-6217 Patch backgroundjob

"status = Running" was moved from jobBody() to go() because otherwise go() could return and getState() still return NotRunning (or Done from a previous go()). It was a race condition. That's tested in GoStateCase().