commit | 80503e255e4ffad8a3c055f4332383f34c8dab2a | [log] [tgz] |
---|---|---|
author | Adam Kocoloski <adam@cloudant.com> | Sat Jul 18 07:49:00 2015 -0400 |
committer | Adam Kocoloski <adam@cloudant.com> | Sat Jul 18 11:44:22 2015 -0400 |
tree | 487895ff06e4b44215a12f425e282071996f7018 | |
parent | 331f8110b5026df38df59db26a1a614fb7251574 [diff] |
Ensure doc groups are sorted before merging them We had been implicitly assuming that clients send us sorted groups, but unsurprisingly that's not always the case. The additional sorting here should be redundant, but the consequences of merging unsorted groups are severe -- we can end up with uniqueness violations on the primary key in the database -- and so we add an additional sort here. COUCHDB-2735