SERVER-13192 Fix sorting in show dbs shell helper
SERVER-12901 make test pause maxSyncSourceLagSecs
SERVER-13212 increase number of indexed solutions considered by the query planner
SERVER-13184 limit number of enumerated plans for an OR
SERVER-13184 Add simple logical rewrite+tests
SERVER-13184 don't forget to hold on to bsonobj in test
SERVER-13032 record write errors on failures of shards and lack of progress

Dedicated mongos error code indicating partial results
(cherry picked from commit aaa29361e759a08c9fa9a44e983a962cecacc50b)
SERVER-13068 remove other occurance of replset last message

(cherry picked from commit 8c11be20ca312e5507a5e4560d62d07010c60543)
SERVER-12977 disallow empty write batches

Also fix shell batch processing to avoid extra empty batches.
(cherry picked from commit b5756056a7b5acba550a7d31a587f3a5b7651e00)
Remove nYields from explain output in repair.js
(cherry picked from commit 9ebf5f742ed816f1d020b889fe715dc26f3e0b69)
SERVER-13207 Unordered batch writes to a shard with version mismatch can trigger dassert at mongos
(cherry picked from commit 337b9dd3f926323aae5025acd3a52b8c1c497b2d)
SERVER-12949 Restore intermediate in-memory reduces, which are used to
keep the memory occupied by map/reduce small and spill extra large results
to disk.

Also adds a JS unit test to ensure this behaviour doesn't change
accidentally.

(cherry picked from commit acc47ab1b993d1abc295974200ffc57d98f4b80e)
Blacklist storageDetailsCommand from sharding passthrough

It isn't intended to be run against mongos.

(cherry picked from commit db9e1ec03fdb51669a3aa9d7d5af365c40e3daa2)
SERVER-13234 Remove timeout from cloneDb.js test
(cherry picked from commit 925d3c57e1c7af4566b989a760d6cfa15bdf3437)
SERVER-13208: dropDups should be ignored for index comparison
SERVER-13206: do not abort secondary on index creation conflict
SERVER-13208: drop dups should be allowed to be different
SERVER-13221 increase plan cache size to 5000 entries

(cherry picked from commit 9faacb76de23e5b99904b4d5efc9ac2743415e1c)
Increase benchRun time to improve reliability of bench_test3.js

(cherry picked from commit 689e23eace05079e4db58ea92caff2aafb1c75db)
Increase timeout of replSetReconfig to leave time for initial sync in two_initsync.js test

(cherry picked from commit 298470d138e0596c0f61fff46cbada3bf402a846)