[PATCH 00/14] tdb: Update pytdb API to match libtdb (v2) + pytdbtorture

Kirill Smelkov kirr at landau.phys.spbu.ru
Sat Oct 2 07:43:39 MDT 2010


Jelmer, All,

I've refreshen remaining patches from my first post, temporarily dropped
dump_all and friends, added support for traverse, check and logging, and also
ported tdbtorture to python, so now pytdb could be more thoroughly tested.


Please apply and thanks,
Kirill


P.S.

Though _both_ C tdbtorture and pytdbtorture sometimes infrequently fail on 2 of
my boxes...

P.P.S. this is also available as

    git pull git://repo.or.cz/samba/kirr.git y/pytdb-update-2


Kirill Smelkov (14):
  pytdb: Add TDB_INCOMPATIBLE_HASH open flag
  pytdb: Add support for tdb_lockall_nonblock() &
    tdb_lockall_read_nonblock()
  tdb: Introduce tdb_chainlock_read_nonblock()
  pytdb: Introduce PyTdb_ARGS_AS_TDBDATA helper
  pytdb: Add support for tdb_chainlock() & friends
  pytdb: Add support for tdb_transaction_start_nonblock()
  pytdb: Add support for tdb_repack()
  pytdb: Add non-freeing variant of PyString_FromTDB_DATA
  pytdb: Add support for tdb_traverse & tdb_traverse_read
  pytdb: Add support for tdb_check()
  pytdb: Check errors after PyObject_New() calls
  pytdb: Add support for logging
  pytdb: Python tdbtorture port
  pytdb: Strip trailing whitespace

 lib/tdb/common/lock.c          |    7 +
 lib/tdb/include/tdb.h          |    1 +
 lib/tdb/pytdb.c                |  422 +++++++++++++++++++++++++++++++++++++---
 lib/tdb/python/pytdbtorture    |  312 +++++++++++++++++++++++++++++
 lib/tdb/python/tests/simple.py |  117 +++++++++++
 lib/tdb/tdb.exports            |    1 +
 lib/tdb/tdb.mk                 |    3 +-
 lib/tdb/tdb.signatures         |    1 +
 8 files changed, 831 insertions(+), 33 deletions(-)
 create mode 100755 lib/tdb/python/pytdbtorture

-- 
1.7.3.1.50.g1e633


More information about the samba-technical mailing list