You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2011/12/16 17:01:51 UTC
git commit: Only remove .view files during cleanup
Updated Branches:
refs/heads/1.1.x 6a04e3336 -> 5bdd8ae7f
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/5bdd8ae7
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/5bdd8ae7
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/5bdd8ae7
Branch: refs/heads/1.1.x
Commit: 5bdd8ae7f132aac6ae9476e925ee2df9b4315a95
Parents: 6a04e33
Author: Paul Joseph Davis <da...@apache.org>
Authored: Fri Dec 16 10:00:55 2011 -0600
Committer: Paul Joseph Davis <da...@apache.org>
Committed: Fri Dec 16 10:00:55 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/5bdd8ae7/src/couchdb/couch_view.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_view.erl b/src/couchdb/couch_view.erl
index 88cadec..b780bc0 100644
--- a/src/couchdb/couch_view.erl
+++ b/src/couchdb/couch_view.erl
@@ -113,7 +113,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}) ->