couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <mar...@buyways.nl>
Subject Re: Database Info-Object (purge request returns invalid purge_seq)
Date Mon, 22 Feb 2010 09:55:17 GMT
purge_seq gets incremented for each _purge request. But there is a small 
issue:


# curl -X GET http://localhost:5984/idm/
{"db_name":"idm","doc_count":7,"doc_del_count":0,"update_seq":27,"purge_seq":12,"compact_running":false,"disk_size":110680,"instance_start_time":"1266831271770843","disk_format_version":4}


# curl -X POST http://localhost:5984/idm/_purge -d '{}'
{"purge_seq":28,"purged":{}}


# curl -X GET http://localhost:5984/idm/
{"db_name":"idm","doc_count":7,"doc_del_count":0,"update_seq":28,"purge_seq":13,"compact_running":false,"disk_size":114776,"instance_start_time":"1266831271770843","disk_format_version":4}


# curl -X POST http://localhost:5984/idm/_purge -d '{}'
{"purge_seq":29,"purged":{}}



Check it out! Purging returns update_seq instead.




Markus Jelsma - Technisch Architect - Buyways BV
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350


Mime
View raw message