1. 07 Apr, 2011 4 commits
  2. 06 Apr, 2011 1 commit
  3. 07 Apr, 2011 1 commit
    • Rusty Russell's avatar
      tdb2: open hook for implementing TDB_CLEAR_IF_FIRST · 0468e699
      Rusty Russell authored
      This allows the caller to implement clear-if-first semantics as per
      TDB1.  The flag was removed for good reasons: performance and
      unreliability, but SAMBA3 still uses it widely, so this allows them to
      reimplement it themselves.
      
      (There is no way to do it without help like this from tdb2, since it has
       to be done under the open lock).
      0468e699
  4. 10 May, 2011 1 commit
    • Rusty Russell's avatar
      tdb2: cleanups for tools/speed.c · 4ee7bd08
      Rusty Russell authored
      1) The logging function needs to append a \n.
      2) The transaction start code should be after the comment and print.
      3) We should run tdb_check to make sure the database is OK after each op.
      4ee7bd08
  5. 07 Apr, 2011 3 commits
  6. 29 Mar, 2011 2 commits
  7. 19 Apr, 2011 1 commit
    • Rusty Russell's avatar
      tdb2: fix tdb_summary reports · 63e80faf
      Rusty Russell authored
      1) Fix the bogus reporting of uncoalesced runs: there has to be more than 1
         free record to make a "run", and any other record interrups the run.
      2) Fix the bogus data count in the top line (which was number of records,
         not bytes).
      3) Remove the count of free buckets: it's now a constant.
      63e80faf
  8. 28 Apr, 2011 4 commits
  9. 27 Apr, 2011 5 commits
  10. 19 Apr, 2011 2 commits
  11. 06 Apr, 2011 1 commit
    • Rusty Russell's avatar
      typesafe_cb: simplify, preserve namespace. · b0fa019a
      Rusty Russell authored
      Get rid of many variants, which were just confusing for most people.
      Keep typesafe_cb(), typesafe_cb_preargs() and typesafe_cb_postarts(),
      and rework cast_if_type() into typesafe_cb_cast() so we stay in our
      namespace.
      
      I should have done this as soon as I discovered the limitation that
      the types have to be defined if I want const-taking callbacks.
      b0fa019a
  12. 19 Apr, 2011 3 commits
  13. 02 Apr, 2011 8 commits
  14. 28 Mar, 2011 4 commits