Ignore:
Timestamp:
Nov 8, 2011, 7:01:01 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba Server 3.5: Correct previous commit

Location:
trunk/server/lib/tdb/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/tdb/common/tdb_private.h

    r656 r657  
    3838#include "tdb.h"
    3939
    40 #define TDB_TRACE 1
     40/* #define TDB_TRACE 1 */
    4141#ifndef HAVE_GETPAGESIZE
    4242#define getpagesize() 0x2000
  • trunk/server/lib/tdb/common/transaction.c

    r656 r657  
    10201020
    10211021        tdb_trace(tdb, "tdb_transaction_commit");
    1022         tdb_trace(tdb, "@todo: tdb_transaction_error");
    10231022        if (tdb->transaction->transaction_error) {
    10241023                tdb->ecode = TDB_ERR_IO;
     
    10281027        }
    10291028
    1030         tdb_trace(tdb, "@todo: tdb_transaction_nesting");
    10311029        if (tdb->transaction->nesting != 0) {
    10321030                tdb->transaction->nesting--;
     
    10341032        }
    10351033
    1036         tdb_trace(tdb, "@todo: tdb_null_transaction");
    10371034        /* check for a null transaction */
    10381035        if (tdb->transaction->blocks == NULL) {
     
    10411038        }
    10421039
    1043         tdb_trace(tdb, "@todo: tdb_transaction_prepare");
    10441040        if (!tdb->transaction->prepared) {
    10451041                int ret = _tdb_transaction_prepare_commit(tdb);
     
    10491045
    10501046        methods = tdb->transaction->io_methods;
    1051 
    1052         tdb_trace(tdb, "@todo: tdb_transaction perform all the writes");
    10531047
    10541048        /* perform all the writes */
     
    10861080        tdb->transaction->num_blocks = 0;
    10871081
    1088         tdb_trace(tdb, "@todo: tdb_transaction ensure the new data is on disk");
    10891082        /* ensure the new data is on disk */
    10901083        if (transaction_sync(tdb, 0, tdb->map_size) == -1) {
     
    11041097           mtime changes when a transaction completes */
    11051098#ifdef HAVE_UTIME
    1106     tdb_trace(tdb, "@todo: tdb_transaction utime");
    11071099        utime(tdb->name, NULL);
    11081100#endif
    11091101
    1110     tdb_trace(tdb, "@todo: tdb_transaction need repack");
    11111102        need_repack = tdb->transaction->need_repack;
    11121103
    11131104        /* use a transaction cancel to free memory and remove the
    11141105           transaction locks */
    1115     tdb_trace(tdb, "@todo: tdb_transaction cancel");
    11161106        _tdb_transaction_cancel(tdb);
    11171107
    11181108        if (need_repack) {
    1119             tdb_trace(tdb, "@todo: tdb_transaction repack");
    11201109                return tdb_repack(tdb);
    11211110        }
Note: See TracChangeset for help on using the changeset viewer.