SERVER-17127Open
Make accounting for upserts consistent with oplog entries on Primaries
There are three scenarios for an upsert. On the Primary all three will be reported as an update, but the actual oplog entry will not necessarily reflect this. When those oplog entries are replicated to Secondaries, the correct counters will be increased, but this makes the counts inconsistent with those on the Primary. The three scenarios are as follows # The document with a given key does not exist. Insert occurs on the Primary and an "i" record written to oplog. This is still recorded in s