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

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to