diff --git a/zaqar/storage/swift/messages.py b/zaqar/storage/swift/messages.py index 6f73dea2b..7e6170bf2 100644 --- a/zaqar/storage/swift/messages.py +++ b/zaqar/storage/swift/messages.py @@ -11,6 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import copy import functools import uuid @@ -346,7 +347,7 @@ class MessageQueueHandler(object): 'age': now - created, 'created': timeutils.iso8601_from_timestamp(created)} if oldest is None: - oldest = newest + oldest = copy.deepcopy(newest) total += 1 if headers.get('x-object-meta-claimid'): claimed += 1