Commit e8b6c35a authored by Ignacio Corderi's avatar Ignacio Corderi
Browse files

WRITEBACK set as default mode for PUT and DELETE

parent 8a33724a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -14,6 +14,9 @@ This section will document changes to the library since the last release
- Pin size added to limits
- SHA1 calculation used as default on puts when algorithm and tag not specified.

## Minor changes
- The client will use WRITEBACK as default when synchronization mode not specified on PUT and DELETE.

Changes from 0.7.3 to 0.8.0
===========================

+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ class BaseAsync(Client):
                    except Exception as e:
                        self._raise(e)
                else:
                    LOG.warn('Unsolicited status %s received but nobody listening.' % resp.status.code)
                    LOG.warn('Unsolicited status %s received but nobody listening. %s' % (resp.status.code, resp.status.statusMessage))
            else:
                seq = resp.header.ackSequence
                if LOG.isEnabledFor(logging.DEBUG):
+4 −0
Original line number Diff line number Diff line
@@ -55,6 +55,10 @@ def _buildMessage(m, messageType, key, data=None, version='', new_version='',
            m.body.keyValue.algorithm = common.IntegrityAlgorithms.SHA1
        else:
            m.body.keyValue.tag = 'l337'

    if (messageType == messages.Command.PUT or messageType == messages.Command.DELETE) and synchronization == None:
        synchronization = common.Synchronization.WRITEBACK

    if synchronization:
        m.body.keyValue.synchronization = synchronization
    if version: