summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2008-10-08 18:52:32 +0000
committerJohn Christopher Anderson <jchris@apache.org>2008-10-08 18:52:32 +0000
commit27535bfe6acc89ae7ddfca02e0a0c499f99e09c0 (patch)
tree4374af6ab77a9e9f6b54745a6ceb921ef14a27d4 /src/couchdb
parent15a0e50b5d75981f287a3cca982af4577633ba49 (diff)
add db_name back to database info, and test
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@702965 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_db.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl
index f74a83fc..e1b36f42 100644
--- a/src/couchdb/couch_db.erl
+++ b/src/couchdb/couch_db.erl
@@ -168,10 +168,12 @@ get_db_info(Db) ->
#db{fd=Fd,
compactor_pid=Compactor,
update_seq=SeqNum,
+ name=Name,
fulldocinfo_by_id_btree=FullDocBtree} = Db,
{ok, Size} = couch_file:bytes(Fd),
{ok, {Count, DelCount}} = couch_btree:full_reduce(FullDocBtree),
InfoList = [
+ {db_name, Name},
{doc_count, Count},
{doc_del_count, DelCount},
{update_seq, SeqNum},