[Checkins] [zopefoundation/ZODB] 45831d: 4.4.2

GitHub noreply at github.com
Thu Jul 28 18:02:02 CEST 2016


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/ZODB
  Commit: 45831d69316807fc39c4b0bb5afbfd2586dbda1f
      https://github.com/zopefoundation/ZODB/commit/45831d69316807fc39c4b0bb5afbfd2586dbda1f
  Author: Jim Fulton <jim at zope.com>
  Date:   2016-07-08 (Fri, 08 Jul 2016)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  4.4.2


  Commit: 87748b157fa749a848fece3b11b2489a4dc80d0b
      https://github.com/zopefoundation/ZODB/commit/87748b157fa749a848fece3b11b2489a4dc80d0b
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2016-07-09 (Sat, 09 Jul 2016)

  Changed paths:
    M src/ZODB/tests/StorageTestBase.py

  Log Message:
  -----------
  Fix handle_all_serials for the new and old protocols.


  Commit: a6c1713d0d78e640c7550d39fe233eb6c47d00cf
      https://github.com/zopefoundation/ZODB/commit/a6c1713d0d78e640c7550d39fe233eb6c47d00cf
  Author: Jim Fulton <jim at zope.com>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M src/ZODB/ConflictResolution.py

  Log Message:
  -----------
  Long lines. Grrrr.


  Commit: d717a685fa69b9529867538cbb8aeebe1ac191cd
      https://github.com/zopefoundation/ZODB/commit/d717a685fa69b9529867538cbb8aeebe1ac191cd
  Author: Jim Fulton <jim at zope.com>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M src/ZODB/FileStorage/FileStorage.py
    M src/ZODB/tests/TransactionalUndoStorage.py

  Log Message:
  -----------
  Refactored FileStorage transactional undo

As part of a project to provide object-level commit locks for ZEO, I'm
refactiring FileStorage to maintain transaction-specific data in
Tranaction.data.  This involved undo.  In trying to figure this out, I
found:

- A bug in _undoDataInfo, which I verified with some tests and

- _transactionalUndoRecord was maddeningly difficult to reason about
  (and thus change).

I was concerned less by the bug than my inability to know whether a
change to the code would be correct.

So I refactored the code, mainly transactionalUndoRecord, to make the
code easier to understand, fixing some logic errors (I'm pretty sure)
along the way.  This included lots of comments. (Comments are much
easier to compose when you're working out logic you didn't
understand.)

In addition to makeing the code cleaner, it allows undo to be handled
in cases that weren't handled before.


  Commit: d64a0cbfb19fcbd7c86ad2051ea15da6cc2ba274
      https://github.com/zopefoundation/ZODB/commit/d64a0cbfb19fcbd7c86ad2051ea15da6cc2ba274
  Author: Jim Fulton <jim at zope.com>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M CHANGES.rst

  Log Message:
  -----------
  changes


  Commit: c13649daf6ae30d280722ca240f5513768fcab8f
      https://github.com/zopefoundation/ZODB/commit/c13649daf6ae30d280722ca240f5513768fcab8f
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M src/ZODB/tests/StorageTestBase.py

  Log Message:
  -----------
  Update comment. [skip ci]


  Commit: e080bdccf13380e36321839a38d8f6d571945efb
      https://github.com/zopefoundation/ZODB/commit/e080bdccf13380e36321839a38d8f6d571945efb
  Author: Jim Fulton <jim at jimfulton.info>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M src/ZODB/tests/StorageTestBase.py

  Log Message:
  -----------
  Merge pull request #86 from NextThought/handle-serials4

Fix handle_all_serials for the new and old protocols.


  Commit: b563487edef77a8cd70ed9afff010dc18f5eb2b0
      https://github.com/zopefoundation/ZODB/commit/b563487edef77a8cd70ed9afff010dc18f5eb2b0
  Author: Jim Fulton <jim at zope.com>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M src/ZODB/FileStorage/FileStorage.py

  Log Message:
  -----------
  removed out of date comment


  Commit: 75bae1a68a30be502a64e2c4afd354a834ca9934
      https://github.com/zopefoundation/ZODB/commit/75bae1a68a30be502a64e2c4afd354a834ca9934
  Author: Jim Fulton <jim at jimfulton.info>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M CHANGES.rst
    M src/ZODB/ConflictResolution.py
    M src/ZODB/FileStorage/FileStorage.py
    M src/ZODB/tests/TransactionalUndoStorage.py

  Log Message:
  -----------
  Merge pull request #89 from zopefoundation/undo-refactor

Refactored FileStorage transactional undo


  Commit: 3807ace862f54a244a7658242bc50ea55ef40e83
      https://github.com/zopefoundation/ZODB/commit/3807ace862f54a244a7658242bc50ea55ef40e83
  Author: Julien Muchembled <jm at nexedi.com>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M src/ZODB/fstools.py
    M src/ZODB/scripts/fstail.py
    M src/ZODB/scripts/tests/fstail.txt
    M src/ZODB/scripts/tests/test_doc.py

  Log Message:
  -----------
  fstail: print the txn offset and header size, instead of only the data offset

Before:

    2016-07-01 09:41:50.416574: hash=d7101c5ee7b8e412d7b6d54873204421e09b7f34
    user='' description='' length=1629 offset=58990284

After:

    2016-07-01 09:41:50.416574: hash=d7101c5ee7b8e412d7b6d54873204421e09b7f34
    user='' description='' length=1629 offset=58990261 (+23)

The structure of a FileStorage DB is such that it's easy to revert the last
transactions, by truncating the file at the right offset. With the above
change, `fstail` can now be used to get this offset.

In the above example:

    truncate -s 58990261 Data.fs

would delete the transaction and all those after.


  Commit: 4392f902a066d0746cd9d682648f5f3bd0af812b
      https://github.com/zopefoundation/ZODB/commit/4392f902a066d0746cd9d682648f5f3bd0af812b
  Author: Julien Muchembled <jm at nexedi.com>
  Date:   2016-07-13 (Wed, 13 Jul 2016)

  Changed paths:
    M CHANGES.rst

  Log Message:
  -----------
  Changelog for PR #88


  Commit: 37e445a5e19786815e5cb41bb08b9fd9b6c551c0
      https://github.com/zopefoundation/ZODB/commit/37e445a5e19786815e5cb41bb08b9fd9b6c551c0
  Author: Jim Fulton <jim at jimfulton.info>
  Date:   2016-07-26 (Tue, 26 Jul 2016)

  Changed paths:
    M CHANGES.rst
    M src/ZODB/fstools.py
    M src/ZODB/scripts/fstail.py
    M src/ZODB/scripts/tests/fstail.txt
    M src/ZODB/scripts/tests/test_doc.py

  Log Message:
  -----------
  Merge pull request #88 from zopefoundation/fstail-offset

fstail: print the txn offset and header size, instead of only the data offset


  Commit: 9d418f125925de9782bdc3eb067980e04479a318
      https://github.com/zopefoundation/ZODB/commit/9d418f125925de9782bdc3eb067980e04479a318
  Author: Julien Muchembled <jm at nexedi.com>
  Date:   2016-07-27 (Wed, 27 Jul 2016)

  Changed paths:
    M src/ZODB/tests/TransactionalUndoStorage.py

  Log Message:
  -----------
  checkTransactionalUndoIterator: do not expect iterator to return sorted oids


  Commit: a2da82358826d9c7b75f22be4d3a8ed5e4c267ca
      https://github.com/zopefoundation/ZODB/commit/a2da82358826d9c7b75f22be4d3a8ed5e4c267ca
  Author: Jim Fulton <jim at jimfulton.info>
  Date:   2016-07-27 (Wed, 27 Jul 2016)

  Changed paths:
    M src/ZODB/tests/TransactionalUndoStorage.py

  Log Message:
  -----------
  Merge pull request #96 from zopefoundation/checkTransactionalUndoIterator

checkTransactionalUndoIterator: do not expect iterator to return sorted oids


  Commit: c9726cb5ffd0a89ffd4093db52d9e1b46f7bd9e4
      https://github.com/zopefoundation/ZODB/commit/c9726cb5ffd0a89ffd4093db52d9e1b46f7bd9e4
  Author: Julien Muchembled <jm at nexedi.com>
  Date:   2016-07-28 (Thu, 28 Jul 2016)

  Changed paths:
    M CHANGES.rst
    M src/ZODB/ConflictResolution.py
    M src/ZODB/fstools.py
    M src/ZODB/scripts/fstail.py
    M src/ZODB/scripts/tests/fstail.txt
    M src/ZODB/scripts/tests/test_doc.py
    M src/ZODB/tests/TransactionalUndoStorage.py

  Log Message:
  -----------
  Merge 4.x branch


Compare: https://github.com/zopefoundation/ZODB/compare/f371a71c8f00...c9726cb5ffd0


More information about the checkins mailing list