…freshes, with 30s timeout
Avoids memory reads of freed memory.
SCons overrides the subprocess module with its own custom implementation (forked from an earlier version of Python, but with some patches). SCons' implementation acquires a lock but does not release it during Popen() if the command being executed cannot be found. The next invocation of Popen() will hang indefinitely attempting to acquire the lock. Moving smoke_python_name() to a python module (i.e. out of the SCons-managed files) causes "import subprocess" to find the actual, system-installed subprocess module, which does not contain the buggy locking.
…ime. This fix changes mongos to stop limiting the shards to send to after the first $in clause - possibly sending the query to more shards than necessary, but saving time. SERVER-4745.