Fix master (#4300)
Fix master (#4300)

* Update calls to db.PutExistingRevWithBody for returned RevID

* Use unique doc names when inserting subsequent successful attachments

ceejatec/sync_gateway,ceejatec/sync_gateway,couchbaselabs/sync_gateway,ceejatec/sync_gateway,couchbaselabs/sync_gateway,couchbaselabs/sync_gateway,couchbaselabs/sync_gateway,ceejatec/sync_gateway