incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe Manana (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COUCHDB-1081) Proper database header upgrade
Date Wed, 02 Mar 2011 13:15:41 GMT

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

Filipe Manana commented on COUCHDB-1081:
----------------------------------------

Just to avoid confusion, the header upgrade procedure is not broken.

The proposed patch just avoids a function clause error when opening a database from more recent
versions. Also, updating the disk_version field is not a must (after compaction we'll get
an header with the latest version) but it makes it easier to analyze when (from which header/offset)
a database file was upgraded (assuming no compaction happened yet).

> Proper database header upgrade
> ------------------------------
>
>                 Key: COUCHDB-1081
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1081
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>            Reporter: Filipe Manana
>            Assignee: Filipe Manana
>         Attachments: COUCHDB-1081.patch
>
>
> After upgrading an old database header, we don't set the disk_version field of the upgraded
header to the latest supported version.
> Also, when opening versions from more recent releases, we get a function clause crash
instead of throwing an exception with an explicit message informing the version is not supported.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message