这就是我获取文档并检查更新版本的方式:
curl http://localhost/cdb/characters/e6b153975174556adc0b344e9a000a7f?revs=true
returns:
{"_id":"e6b153975174556adc0b344e9a000a7f","_rev":"1-25b25539eca3944ef8d8f20748ed4902","name":"Barack Obama","position":"US President"}
然后我尝试像这样删除该文档:
curl -X DELETE http://localhost/cdb/characters/e6b153975174556adc0b344e9a000a7f?rev=1-25b25539eca3944ef8d8f20748ed4902
response:
{"error":"conflict","reason":"Document update conflict."}
为什么,如果修订似乎没有问题,删除时是否存在文档冲突?
删除没有其他修订的文档是否有问题?