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

ASF GitHub Bot commented on COUCHDB-2511:
-----------------------------------------

GitHub user davisp opened a pull request:

    https://github.com/apache/couchdb-couch/pull/23

    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

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/couchdb-couch 2511-add-is-old-record

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-couch/pull/23.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #23
    
----
commit dd83465cee262162bee4819dc21cbca073181861
Author: Paul J. Davis <[email protected]>
Date:   2014-12-12T20:25:38Z

    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)

Reply via email to