From dev-return-6579-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Mon Sep 21 15:42:49 2009 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 6009 invoked from network); 21 Sep 2009 15:42:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Sep 2009 15:42:49 -0000 Received: (qmail 99995 invoked by uid 500); 21 Sep 2009 15:42:48 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 99914 invoked by uid 500); 21 Sep 2009 15:42:48 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 99904 invoked by uid 99); 21 Sep 2009 15:42:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Sep 2009 15:42:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Sep 2009 15:42:37 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 10E4E234C1EA for ; Mon, 21 Sep 2009 08:42:16 -0700 (PDT) Message-ID: <296562461.1253547736067.JavaMail.jira@brutus> Date: Mon, 21 Sep 2009 08:42:16 -0700 (PDT) From: "Benoit Chesneau (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-507) add modified time to db header In-Reply-To: <870043003.1253547736003.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benoit Chesneau updated COUCHDB-507: ------------------------------------ Attachment: modified.patch > 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. - You can reply to this email to add a comment to the issue online.