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`.
Reviewed: https:/ /review. openstack. org/78673 /git.openstack. org/cgit/ openstack/ marconi/ commit/ ?id=364945f9902 302e23cb6164377 f5a310a82a2839
Committed: https:/
Submitter: Jenkins
Branch: master
commit 364945f9902302e 23cb6164377f5a3 10a82a2839
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: I076ffc171adf02 fdb15160b6c7b29 646ee3fb280
Closes-bug: #1288820