summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Smith (air) <jhs@iriscouch.com>2012-01-23 01:31:11 +0000
committerRandall Leeds <randall@apache.org>2012-01-22 21:59:40 -0800
commit50ae62f712ec1661031ec9d39ff30c914fdcdd4c (patch)
treea0c6319aa44e08216cb275c5b9180ec122990c83
parent879a1bc19b145e126b9386aed2023f9cd1df8b31 (diff)
downloadcouchdb-50ae62f712ec1661031ec9d39ff30c914fdcdd4c.tar.gz
Use the correct utility function to get the index directory path
-rw-r--r--src/couch_index/src/couch_index_server.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couch_index/src/couch_index_server.erl b/src/couch_index/src/couch_index_server.erl
index 398c27d91..3a0b43627 100644
--- a/src/couch_index/src/couch_index_server.erl
+++ b/src/couch_index/src/couch_index_server.erl
@@ -164,7 +164,7 @@ reset_indexes(DbName, Root) ->
rem_from_ets(DbName, Sig, DDocId, Pid)
end,
lists:foreach(Fun, ets:lookup(?BY_DB, DbName)),
- Path = Root ++ "/." ++ binary_to_list(DbName) ++ "_design",
+ Path = couch_index_util:index_dir("", DbName),
couch_file:nuke_dir(Root, Path).