Comment 4 for bug 1288820

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to marconi (master)

Reviewed: https://review.openstack.org/78673
Committed: https://git.openstack.org/cgit/openstack/marconi/commit/?id=364945f9902302e23cb6164377f5a310a82a2839
Submitter: Jenkins
Branch: master

commit 364945f9902302e23cb6164377f5a310a82a2839
Author: Flavio Percoco <email address hidden>
Date: Thu Mar 6 18:10:54 2014 +0100

    Reuse the transaction before getting messages

    The message get helper for claims used its own connection and ran
    outside the transaction where the 'claiming' happened. This caused the
    get to fail at retrieving the messages because the query was being
    executed 'before' the transaction.

    This patch fixes the aforementioned issue and also ensures that records
    ids are 'int' before calling `message_encode`.

    Change-Id: I076ffc171adf02fdb15160b6c7b29646ee3fb280
    Closes-bug: #1288820