Changeset 657 for trunk/server/lib/tdb/common
- Timestamp:
- Nov 8, 2011, 7:01:01 PM (14 years ago)
- Location:
- trunk/server/lib/tdb/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/lib/tdb/common/tdb_private.h
r656 r657 38 38 #include "tdb.h" 39 39 40 #define TDB_TRACE 1 40 /* #define TDB_TRACE 1 */ 41 41 #ifndef HAVE_GETPAGESIZE 42 42 #define getpagesize() 0x2000 -
trunk/server/lib/tdb/common/transaction.c
r656 r657 1020 1020 1021 1021 tdb_trace(tdb, "tdb_transaction_commit"); 1022 tdb_trace(tdb, "@todo: tdb_transaction_error");1023 1022 if (tdb->transaction->transaction_error) { 1024 1023 tdb->ecode = TDB_ERR_IO; … … 1028 1027 } 1029 1028 1030 tdb_trace(tdb, "@todo: tdb_transaction_nesting");1031 1029 if (tdb->transaction->nesting != 0) { 1032 1030 tdb->transaction->nesting--; … … 1034 1032 } 1035 1033 1036 tdb_trace(tdb, "@todo: tdb_null_transaction");1037 1034 /* check for a null transaction */ 1038 1035 if (tdb->transaction->blocks == NULL) { … … 1041 1038 } 1042 1039 1043 tdb_trace(tdb, "@todo: tdb_transaction_prepare");1044 1040 if (!tdb->transaction->prepared) { 1045 1041 int ret = _tdb_transaction_prepare_commit(tdb); … … 1049 1045 1050 1046 methods = tdb->transaction->io_methods; 1051 1052 tdb_trace(tdb, "@todo: tdb_transaction perform all the writes");1053 1047 1054 1048 /* perform all the writes */ … … 1086 1080 tdb->transaction->num_blocks = 0; 1087 1081 1088 tdb_trace(tdb, "@todo: tdb_transaction ensure the new data is on disk");1089 1082 /* ensure the new data is on disk */ 1090 1083 if (transaction_sync(tdb, 0, tdb->map_size) == -1) { … … 1104 1097 mtime changes when a transaction completes */ 1105 1098 #ifdef HAVE_UTIME 1106 tdb_trace(tdb, "@todo: tdb_transaction utime");1107 1099 utime(tdb->name, NULL); 1108 1100 #endif 1109 1101 1110 tdb_trace(tdb, "@todo: tdb_transaction need repack");1111 1102 need_repack = tdb->transaction->need_repack; 1112 1103 1113 1104 /* use a transaction cancel to free memory and remove the 1114 1105 transaction locks */ 1115 tdb_trace(tdb, "@todo: tdb_transaction cancel");1116 1106 _tdb_transaction_cancel(tdb); 1117 1107 1118 1108 if (need_repack) { 1119 tdb_trace(tdb, "@todo: tdb_transaction repack");1120 1109 return tdb_repack(tdb); 1121 1110 }
Note:
See TracChangeset
for help on using the changeset viewer.