davisp commented on a change in pull request #2666: [WIP] soft-deletion for 
database
URL: https://github.com/apache/couchdb/pull/2666#discussion_r396593347
 
 

 ##########
 File path: src/fabric/src/fabric2_db.erl
 ##########
 @@ -213,6 +219,26 @@ delete(DbName, Options) ->
     end.
 
 
+deleted_dbs_info(DbName, Options) ->
+    Options1 = lists:keystore(user_ctx, 1, Options, ?ADMIN_CTX),
+    Result = fabric2_fdb:transactional(DbName, Options1, fun(TxDb) ->
+        fabric2_fdb:deleted_dbs_info(TxDb)
+    end),
+    {ok, lists:reverse(Result)}.
+
+
+restore(DbName, DesDbName, TimeStamp, Options) ->
+    case validate_dbname(DesDbName) of
+        ok ->
+            Options1 = lists:keystore(user_ctx, 1, Options, ?ADMIN_CTX),
 
 Review comment:
   This isn't the right place to throw in ?ADMIN_CTX uncoditionally. That 
should be part of chttpd.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to