Updated Branches: refs/heads/1.2.x 1bbe61973 -> 493d4b3b4
Only remove .view files during cleanup Thanks to Volker Mische for the patch. Closes COUCHDB-1358 Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/493d4b3b Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/493d4b3b Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/493d4b3b Branch: refs/heads/1.2.x Commit: 493d4b3b461b5099a37fc00f07bf6cf9a70b02ba Parents: 1bbe619 Author: Paul Joseph Davis <[email protected]> Authored: Fri Dec 16 10:00:55 2011 -0600 Committer: Paul Joseph Davis <[email protected]> Committed: Fri Dec 16 10:02:10 2011 -0600 ---------------------------------------------------------------------- src/couchdb/couch_view.erl | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/493d4b3b/src/couchdb/couch_view.erl ---------------------------------------------------------------------- diff --git a/src/couchdb/couch_view.erl b/src/couchdb/couch_view.erl index 6664388..2c28d05 100644 --- a/src/couchdb/couch_view.erl +++ b/src/couchdb/couch_view.erl @@ -114,7 +114,9 @@ cleanup_index_files(Db) -> list_index_files(Db) -> % call server to fetch the index files RootDir = couch_config:get("couchdb", "view_index_dir"), - filelib:wildcard(RootDir ++ "/." ++ ?b2l(couch_db:name(Db)) ++ "_design"++"/*"). + filelib:wildcard( + RootDir ++ "/." ++ ?b2l(couch_db:name(Db)) ++ "_design"++"/*.view" + ). get_row_count(#view{btree=Bt}) ->
