Skip to content

Commit

Permalink
Add purge_seq to DbInfo
Browse files Browse the repository at this point in the history
Change-Id: I4dd9c337dfedf3e3949f1dcedfaa87462f9b10b8
Reviewed-on: http://review.couchbase.org/35062
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Reviewed-by: Sundararaman Sridharan <sundar@couchbase.com>
Tested-by: Sundararaman Sridharan <sundar@couchbase.com>
  • Loading branch information
abhinavdangeti authored and hisundar committed Mar 31, 2014
1 parent ca6022c commit ad9aabf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/libcouchstore/couch_common.h
Expand Up @@ -96,6 +96,7 @@ extern "C" {
uint64_t space_used; /**< Disk space actively used by docs */
uint64_t file_size; /**< Total disk space used by database */
cs_off_t header_position; /**< File offset of current header */
uint64_t purge_seq; /**< Last Purge sequence number */
} DbInfo;


Expand Down
1 change: 1 addition & 0 deletions src/couch_db.cc
Expand Up @@ -1034,6 +1034,7 @@ couchstore_error_t couchstore_db_info(Db *db, DbInfo* dbinfo) {
dbinfo->filename = db->file.path;
dbinfo->header_position = db->header.position;
dbinfo->last_sequence = db->header.update_seq;
dbinfo->purge_seq = db->header.purge_seq;
dbinfo->deleted_count = dbinfo->doc_count = dbinfo->space_used = 0;
dbinfo->file_size = db->file.pos;
if (id_root) {
Expand Down

0 comments on commit ad9aabf

Please sign in to comment.