summaryrefslogtreecommitdiff
path: root/ChangeLog.rst
diff options
context:
space:
mode:
authorJon Parise <jon@pinterest.com>2019-08-05 12:52:12 -0700
committerGitHub <noreply@github.com>2019-08-05 12:52:12 -0700
commit7ad74da1c242a735bd805c836f3ddf5830b19a83 (patch)
treeb1a91714b32bc3340a3932d99526b5a801ba450f /ChangeLog.rst
parentde558b56cab9fa36576158a2ffa7783f0246ba16 (diff)
downloadpymemcache-7ad74da1c242a735bd805c836f3ddf5830b19a83.tar.gz
Fix flags when setting multiple values at once (#248)v2.2.1
We introduced the ability to override the serializer-returned flags values in 26f7c1b1. Unfortunately, there was a flaw in that logic which resulted in the first item's flags being used for all later items. This bug primarily affected set_many()'s behavior when the data dictionary contained multiple different value types which were assigned different per-value flags values by the serializer. For example: set_many({'a': 'string', 'b': 10}) If a serializer returned different flags for strings (e.g. 1) and integer values (e.g. 2), the previous logic would have set ``flags`` to 1 the first time through the loop and repeated that value for the second item, instead of using 2. This was the intended behavior when ``flags`` was explicitly passed to set_many(), but not for the default case where we still want to respect the flags values returned by the serializer.
Diffstat (limited to 'ChangeLog.rst')
-rw-r--r--ChangeLog.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog.rst b/ChangeLog.rst
index ccb30ee..c8d6376 100644
--- a/ChangeLog.rst
+++ b/ChangeLog.rst
@@ -1,6 +1,10 @@
Change Log
==========
+New in version 2.2.1
+--------------------
+* Fix ``flags`` when setting multiple differently-typed values at once.
+
New in version 2.2.0
--------------------
* Drop official support for Python 3.4.