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 2017/02/24 17:50:13 UTC
fabric commit: updated
refs/heads/COUCHDB-3287-pluggable-storage-engines to 7fa3652
Repository: couchdb-fabric
Updated Branches:
refs/heads/COUCHDB-3287-pluggable-storage-engines c4ae2f5fd -> 7fa365262
Temporary debug log for failing tests
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/7fa36526
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/7fa36526
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/7fa36526
Branch: refs/heads/COUCHDB-3287-pluggable-storage-engines
Commit: 7fa365262c044700ae21733ac607ed0068ce233d
Parents: c4ae2f5
Author: Paul J. Davis <pa...@gmail.com>
Authored: Fri Feb 24 11:50:38 2017 -0600
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Fri Feb 24 11:50:38 2017 -0600
----------------------------------------------------------------------
src/fabric_rpc.erl | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/7fa36526/src/fabric_rpc.erl
----------------------------------------------------------------------
diff --git a/src/fabric_rpc.erl b/src/fabric_rpc.erl
index 6dee870..d937360 100644
--- a/src/fabric_rpc.erl
+++ b/src/fabric_rpc.erl
@@ -156,7 +156,13 @@ create_shard_db_doc(_, Doc) ->
rexi:reply(mem3_util:write_db_doc(Doc)).
delete_db(DbName) ->
- couch_server:delete(DbName, []).
+ case couch_server:delete(DbName, []) of
+ ok ->
+ ok;
+ Else ->
+ couch_log:error("Error deleting database ~s :: ~p", [DbName, Else]),
+ Else
+ end.
delete_shard_db_doc(_, DocId) ->
rexi:reply(mem3_util:delete_db_doc(DocId)).