/ Check-in [461ced77]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix another problem with multi-threaded mode in the LSM test code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | lsm-vtab
Files: files | file ages | folders
SHA3-256: 461ced77d93e84f09bfb4291999cd0245506fa9a8369049fd68968bbcf18d41b
User & Date: dan 2017-06-26 08:24:35
Context
2017-06-26
11:46
Remove an invalid assert() from lsm test code. check-in: ca8a7e99 user: dan tags: lsm-vtab
08:24
Fix another problem with multi-threaded mode in the LSM test code. check-in: 461ced77 user: dan tags: lsm-vtab
07:31
Update a test case to reflect the fact that the lsm blocksize is configured in KiB. And defaults to 1024, not 2048. check-in: d7015475 user: dan tags: lsm-vtab
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/lsm1/lsm-test/lsmtest_tdb3.c.

   517    517     int rc;
   518    518   
   519    519     do {
   520    520       nKB = 0;
   521    521       rc = lsm_info(db, LSM_INFO_CHECKPOINT_SIZE, &nKB);
   522    522       if( rc!=LSM_OK || nKB<pDb->nMtMaxCkpt ) break;
   523    523   #ifdef LSM_MUTEX_PTHREADS
   524         -    mt_signal_worker(pDb, 1);
          524  +    mt_signal_worker(pDb, 
          525  +        (pDb->eMode==LSMTEST_MODE_BACKGROUND_CKPT ? 0 : 1)
          526  +    );
   525    527   #endif
   526    528       usleep(5000);
   527    529       nSleep += 5;
   528    530     }while( 1 );
   529    531   
   530    532   #if 0
   531    533       if( nSleep ) printf("# waitOnCheckpointer(): nSleep=%d\n", nSleep);