Ignore:
Timestamp:
Nov 8, 2011, 6:50:31 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba Server 3.5: Some more work to get high-mem working

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

Legend:

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

    r456 r656  
    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

    r456 r656  
    10201020
    10211021        tdb_trace(tdb, "tdb_transaction_commit");
    1022 
     1022        tdb_trace(tdb, "@todo: tdb_transaction_error");
    10231023        if (tdb->transaction->transaction_error) {
    10241024                tdb->ecode = TDB_ERR_IO;
     
    10281028        }
    10291029
    1030 
     1030        tdb_trace(tdb, "@todo: tdb_transaction_nesting");
    10311031        if (tdb->transaction->nesting != 0) {
    10321032                tdb->transaction->nesting--;
     
    10341034        }
    10351035
     1036        tdb_trace(tdb, "@todo: tdb_null_transaction");
    10361037        /* check for a null transaction */
    10371038        if (tdb->transaction->blocks == NULL) {
     
    10401041        }
    10411042
     1043        tdb_trace(tdb, "@todo: tdb_transaction_prepare");
    10421044        if (!tdb->transaction->prepared) {
    10431045                int ret = _tdb_transaction_prepare_commit(tdb);
     
    10481050        methods = tdb->transaction->io_methods;
    10491051
     1052        tdb_trace(tdb, "@todo: tdb_transaction perform all the writes");
     1053
    10501054        /* perform all the writes */
    10511055        for (i=0;i<tdb->transaction->num_blocks;i++) {
     
    10621066                        length = tdb->transaction->last_block_size;
    10631067                }
    1064 
    10651068                if (methods->tdb_write(tdb, offset, tdb->transaction->blocks[i], length) == -1) {
    10661069                        TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_transaction_commit: write failed during commit\n"));
     
    10831086        tdb->transaction->num_blocks = 0;
    10841087
     1088        tdb_trace(tdb, "@todo: tdb_transaction ensure the new data is on disk");
    10851089        /* ensure the new data is on disk */
    10861090        if (transaction_sync(tdb, 0, tdb->map_size) == -1) {
     
    11001104           mtime changes when a transaction completes */
    11011105#ifdef HAVE_UTIME
     1106    tdb_trace(tdb, "@todo: tdb_transaction utime");
    11021107        utime(tdb->name, NULL);
    11031108#endif
    11041109
     1110    tdb_trace(tdb, "@todo: tdb_transaction need repack");
    11051111        need_repack = tdb->transaction->need_repack;
    11061112
    11071113        /* use a transaction cancel to free memory and remove the
    11081114           transaction locks */
     1115    tdb_trace(tdb, "@todo: tdb_transaction cancel");
    11091116        _tdb_transaction_cancel(tdb);
    11101117
    11111118        if (need_repack) {
     1119            tdb_trace(tdb, "@todo: tdb_transaction repack");
    11121120                return tdb_repack(tdb);
    11131121        }
Note: See TracChangeset for help on using the changeset viewer.