Only update a document's _id and _rev if the save was successful.
Only update a document's _id and _rev if the save was successful.

Thanks Jason Davies.



git-svn-id: c1f8a8ec0b3bb2e99ab3413722f81f687760e79c@793218 13f79535-47bb-0310-9956-ffa450edef68

breezjw/bigcouch,kofron/bigcouch,benoitc/couchit_experiment,fkaempfer/couchdb,breezjw/bigcouch,breezjw/bigcouch,fkaempfer/couchdb,linearregression/bigcouch,Asquera/bigcouch,cloudant/bigcouch,bittorrent/bigcouch,PerilousApricot/bigcouch,davidcoallier/bigcouch,PerilousApricot/bigcouch,davidcoallier/bigcouch,Gussy/bigcouch,linearregression/bigcouch,georgemarshall/bigcouch,bittorrent/bigcouch,Gussy/bigcouch,benoitc/couchit_experiment,Asquera/bigcouch,cloudant/bigcouch,cloudant/bigcouch,benoitc/bigcouch,kofron/bigcouch,Gussy/bigcouch,georgemarshall/bigcouch,davidcoallier/bigcouch,andrejb/cloudant_bigcouch,davidcoallier/bigcouch,davidcoallier/bigcouch,cloudant/bigcouch,bittorrent/bigcouch,Asquera/bigcouch,linearregression/bigcouch,linearregression/bigcouch,georgemarshall/bigcouch,andrejb/cloudant_bigcouch,Gussy/bigcouch,Gussy/bigcouch,KlausTrainer/bigcouch,andrejb/cloudant_bigcouch,KlausTrainer/bigcouch,cloudant/bigcouch,fkaempfer/couchdb,fkaempfer/couchdb,benoitc/bigcouch,bittorrent/bigcouch,benoitc/couchit_experiment,andrejb/cloudant_bigcouch,Asquera/bigcouch,benoitc/couchit_experiment,Asquera/bigcouch,benoitc/bigcouch,KlausTrainer/bigcouch,bittorrent/bigcouch,benoitc/bigcouch,davidcoallier/bigcouch,andrejb/cloudant_bigcouch,KlausTrainer/bigcouch,PerilousApricot/bigcouch,andrejb/cloudant_bigcouch,linearregression/bigcouch,KlausTrainer/bigcouch,PerilousApricot/bigcouch,bittorrent/bigcouch,fkaempfer/couchdb,Gussy/bigcouch,benoitc/bigcouch,breezjw/bigcouch,andrejb/cloudant_bigcouch,KlausTrainer/bigcouch,kofron/bigcouch,georgemarshall/bigcouch,benoitc/bigcouch,PerilousApricot/bigcouch,linearregression/bigcouch,kofron/bigcouch,fkaempfer/couchdb,cloudant/bigcouch,breezjw/bigcouch,Asquera/bigcouch,georgemarshall/bigcouch,georgemarshall/bigcouch,linearregression/bigcouch,cloudant/bigcouch,benoitc/couchit_experiment,kofron/bigcouch,kofron/bigcouch,PerilousApricot/bigcouch,breezjw/bigcouch