From 6cc14b1e06e7a0f27b0c40382ec96d9d2bf1c6a6 Mon Sep 17 00:00:00 2001 From: Robert Newson Date: Sun, 8 Aug 2010 15:37:10 +0000 Subject: 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 --- src/couchdb/couch_db.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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}. -- cgit v1.2.3