couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject git commit: Only remove .view files during cleanup
Date Fri, 16 Dec 2011 16:01:51 GMT
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 <davisp@apache.org>
Authored: Fri Dec 16 10:00:55 2011 -0600
Committer: Paul Joseph Davis <davisp@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}) ->


Mime
View raw message