Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.3
-
None
Description
To reproduce:
1. Build a new couchdb with an empty lib folder
2. Run the following to create an index an delete the db:
- Create a db and a view
curl -X PUT localhost:5984/will_delete
curl -X PUT localhost:5984/will_delete/_design/view -d "{ \"views\": { \"s\":Unknown macro: { "map"}}}"
curl -X PUT localhost:5984/will_delete/doc1 -d "{ }"
curl localhost:5984/will_delete/_design/view/_view/s
- Delete the db
curl -X DELETE localhost:5984/will_delete
3. (BUG1) The view folder has been moved to lib/.delete but is still there.
4. Restart couchdb. This should also clean up the .delete folder (inside couch_file:init_delete_dir).
5. (BUG2) The view folder is still there