Changeset 888
- Timestamp:
- Jun 19, 2015, 4:14:10 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/lib/tdb/tools/tdbtorture.c
r878 r888 2 2 writers - that stresses the locking code. 3 3 */ 4 5 #ifdef __OS2__ 6 #define INCL_DOSEXCEPTIONS 7 #define INCL_DOSPROCESS 8 #define INCL_DOSMODULEMGR 9 #define INCL_LOADEXCEPTQ 10 #define INCL_FORKEXCEPTQ 11 #include <os2.h> 12 #include <exceptq.h> 13 #endif 4 14 5 15 #include "replace.h" … … 235 245 static int run_child(const char *filename, int i, int seed, unsigned num_loops, unsigned start) 236 246 { 247 #ifdef __OS2__ 248 EXCEPTIONREGISTRATIONRECORD ExRegRec; 249 LoadExceptq(&ExRegRec, NULL, NULL); 250 #endif 237 251 db = tdb_open_ex(filename, hash_size, TDB_DEFAULT, 238 252 O_RDWR | O_CREAT, 0600, &log_ctx, NULL); … … 249 263 250 264 for (;loopnum<num_loops && error_count == 0;loopnum++) { 251 printf("loop %i\n", loopnum);252 265 addrec_db(); 253 266 } … … 273 286 tdb_close(db); 274 287 288 #ifdef __OS2__ 289 UninstallExceptq(&ExRegRec); 290 #endif 275 291 return (error_count < 100 ? error_count : 100); 276 292 } … … 307 323 308 324 log_ctx.log_fn = tdb_log; 325 #ifdef __OS2__ 326 EXCEPTIONREGISTRATIONRECORD ExRegRec; 327 LoadExceptq(&ExRegRec, NULL, NULL); 328 #endif 309 329 310 330 while ((c = getopt(argc, argv, "n:l:s:H:thk")) != -1) { … … 455 475 456 476 free(test_tdb); 477 #ifdef __OS2__ 478 UninstallExceptq(&ExRegRec); 479 #endif 457 480 return error_count; 458 481 }
Note:
See TracChangeset
for help on using the changeset viewer.