Reconfiguring sweep and then reconfiguring something else will cause the sweep configuration to fall back to its base values.
@michaelcahill, we have made this mistake before, so I thought I'd re-use cfg instead of a local variable. I think that's OK, but can you take a quick look?