Updated openstack/openstack

Project: openstack/swift  3c11f6b8a89fffa9a44e9396f48e1dc98499c81e

Make dict deletion idempotent in dump_recon_cache

Calling dump_recon_cache with a key mapped to an empty dict value
causes the key to be removed from the cache entry. Doing the same
again causes the key to be added back and mapped an empty dict, and
the key continues to toggle as calls are repeated. This behavior is
seen on the Related-Bug report.

This patch fixes dump_recon_cache to make deletion of a key
idempotent. This fix is needed for the Related-Change which makes use
of empty dicts with dump_recon_cache to clear unwanted keys from the
cache.

The only caller that currently set empty dict values is
obj/auditor.py where the current intended behavior would appear to be
as per this patch.

Related-Change: I28925a37f3985c9082b5a06e76af4dc3ec813abe
Related-Bug: #1704858
Change-Id: If9638b4e7dba0ec2c7bd95809cec6c5e18e9301e
This commit is contained in:
Jenkins 2017-07-18 03:28:16 +00:00 committed by Gerrit Code Review
parent 7bcf7f3abf
commit d05d21bd86
1 changed files with 1 additions and 1 deletions

2
swift

@ -1 +1 @@
Subproject commit 269d314dd8171e1947a0910fbb1852edb91ee9cf
Subproject commit 3c11f6b8a89fffa9a44e9396f48e1dc98499c81e