davisp commented on a change in pull request #597: Move view index files to 
.view_deleted when db is deleted
URL: https://github.com/apache/couchdb/pull/597#discussion_r127995624
 
 

 ##########
 File path: src/couch/src/couch_file.erl
 ##########
 @@ -264,6 +265,19 @@ rename_file(Original) ->
         Else -> Else
     end.
 
+rename_dir(RootDelDir, Original, DbName) ->
+    DbDir = binary_to_list(DbName) ++ "_design",
+    [DbPureName | _R] = lists:reverse(filename:split(binary_to_list(DbName))),
 
 Review comment:
   Also, while users is a Cloudant specific issue it doesn't change the logic 
here as if you had a database name hierarchy you'd end up just chopping off the 
last element for the group which seems like it'd be super confusing to any 
administrator trying to use file recovery. You'd basically have to write the 
same scripts to search for files as you would without the whole grouping effort 
which makes me think there's not much benefit to doing it in the first place.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to