couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lehnardt (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-507) add modified time to db header
Date Sun, 30 Oct 2011 16:16:32 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13139658#comment-13139658
] 

Jan Lehnardt commented on COUCHDB-507:
--------------------------------------

Is this still relevant?
                
> 	add modified time to db header
> -------------------------------
>
>                 Key: COUCHDB-507
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-507
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core
>    Affects Versions: 0.11
>            Reporter: Benoit Chesneau
>         Attachments: modified.patch
>
>
> Patch that add modified date to teh db header in view of geeting last time a db was updated
which would allow in case of a global db handler to get all changes since this date, or just
get all new dbs created. Patch is attached and could be found in my repo :
> http://bitbucket.org/benoitc/couchdb/src/9733d08fc7b0/
> It works and I can get db infos :
> {"db_name":"testdb","doc_count":0,"doc_del_count":1,"update_seq":3,"modified":"1253540241479553","purge_seq":0,"compact_running":false,"disk_size":12398,"instance_start_time":"1253540874651249","disk_format_version":5}
> Main problem actually is that it doesn't handle old dbs since header should be upgraded.
I've read the code in couch_file but fail for now to understand the logic to read/rewrite
header. I think I should first test if header is on version < 0.9 then 0.10 but... Any
help would be appreciated.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message