summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2010-08-08 15:37:10 +0000
committerRobert Newson <rnewson@apache.org>2010-08-08 15:37:10 +0000
commit6cc14b1e06e7a0f27b0c40382ec96d9d2bf1c6a6 (patch)
treee8e85340edeef4894a9a2f058f8cb4d653a731d4 /src/couchdb
parent74550455c597a0ef20fc40f04d9dc9ed00e2cf91 (diff)
related to COUCHDB-844. Include committed_update_seq in db_info to allow external monitoring of delayed commits.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@983435 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_db.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl
index 5cabf9ef..76ae819e 100644
--- a/src/couchdb/couch_db.erl
+++ b/src/couchdb/couch_db.erl
@@ -239,7 +239,8 @@ get_db_info(Db) ->
update_seq=SeqNum,
name=Name,
fulldocinfo_by_id_btree=FullDocBtree,
- instance_start_time=StartTime} = Db,
+ instance_start_time=StartTime,
+ committed_update_seq=CommittedUpdateSeq} = Db,
{ok, Size} = couch_file:bytes(Fd),
{ok, {Count, DelCount}} = couch_btree:full_reduce(FullDocBtree),
InfoList = [
@@ -251,7 +252,8 @@ get_db_info(Db) ->
{compact_running, Compactor/=nil},
{disk_size, Size},
{instance_start_time, StartTime},
- {disk_format_version, DiskVersion}
+ {disk_format_version, DiskVersion},
+ {committed_update_seq, CommittedUpdateSeq}
],
{ok, InfoList}.