[
https://issues.apache.org/jira/browse/COUCHDB-2511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14244726#comment-14244726
]
ASF subversion and git services commented on COUCHDB-2511:
----------------------------------------------------------
Commit dd83465cee262162bee4819dc21cbca073181861 in couchdb-couch's branch
refs/heads/2511-add-is-old-record from [~paul.joseph.davis]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=dd83465 ]
Add IS_OLD_RECORD macro
This can be used in guards to detect if a state variable needs to be
upgraded. An example of it's use might be:
handle_call(Msg, From, St) when ?IS_OLD_RECORD(St, #st{}) ->
handle_call(Msg, From, upgrade_state(St));
This is useful for upgrading any of our various gen behaviors that
aren't properly supervised.
COUCHDB-2511
> Add IS_OLD_RECORD macro to couch_db.hrl
> ---------------------------------------
>
> Key: COUCHDB-2511
> URL: https://issues.apache.org/jira/browse/COUCHDB-2511
> Project: CouchDB
> Issue Type: Improvement
> Security Level: public(Regular issues)
> Components: Database Core
> Reporter: Paul Joseph Davis
>
> This is useful for detecting upgrade in our various un-supervised processes.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)