diff options
author | Robert Newson <rnewson@apache.org> | 2010-08-08 15:40:47 +0000 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2010-08-08 15:40:47 +0000 |
commit | bfc6459e56854808b6051b79b53535ce1b9adec8 (patch) | |
tree | ec9c61f2d79de2126d39aaf52363a293c81422db /src | |
parent | dcd71abb9ac84ac62a6382dcaec0cb3c89007f10 (diff) |
backported from trunk at r983435.
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/branches/1.0.x@983439 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_db.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl index 34b4f3fb..7678f6ca 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}. |