@@ -7454,19 +7454,15 @@ static void *db_count(void *varg)
74547454 return NULL ;
74557455}
74567456
7457- int gbl_parallel_count = 0 ;
7458- int bdb_direct_count (bdb_cursor_ifn_t * cur , int ixnum , int64_t * rcnt , int is_snapcur , uint32_t modsnap_start_lsn_file , uint32_t modsnap_start_lsn_offset , uint32_t last_checkpoint_lsn_file , uint32_t last_checkpoint_lsn_offset )
7457+ int bdb_direct_count_int (bdb_state_type * state , int ixnum , int64_t * rcnt , int is_snapcur , uint32_t modsnap_start_lsn_file , uint32_t modsnap_start_lsn_offset , uint32_t last_checkpoint_lsn_file , uint32_t last_checkpoint_lsn_offset , int parallel_count )
74597458{
74607459 int64_t count = 0 ;
7461- int parallel_count ;
7462- bdb_state_type * state = cur -> impl -> state ;
74637460 DB * * db ;
74647461 int stripes ;
74657462 pthread_attr_t attr ;
74667463 if (ixnum < 0 ) { // data
74677464 db = state -> dbp_data [0 ];
74687465 stripes = state -> attr -> dtastripe ;
7469- parallel_count = gbl_parallel_count ;
74707466 Pthread_attr_init (& attr );
74717467#ifdef PTHREAD_STACK_MIN
74727468 Pthread_attr_setstacksize (& attr , PTHREAD_STACK_MIN + 512 * 1024 );
@@ -7516,3 +7512,9 @@ int bdb_direct_count(bdb_cursor_ifn_t *cur, int ixnum, int64_t *rcnt, int is_sna
75167512 if (rc == 0 ) * rcnt = count ;
75177513 return rc ;
75187514}
7515+
7516+ int gbl_parallel_count = 0 ;
7517+ int bdb_direct_count (bdb_cursor_ifn_t * cur , int ixnum , int64_t * rcnt , int is_snapcur , uint32_t modsnap_start_lsn_file , uint32_t modsnap_start_lsn_offset , uint32_t last_checkpoint_lsn_file , uint32_t last_checkpoint_lsn_offset )
7518+ {
7519+ return bdb_direct_count_int (cur -> impl -> state , ixnum , rcnt , is_snapcur , modsnap_start_lsn_file , modsnap_start_lsn_offset , last_checkpoint_lsn_file , last_checkpoint_lsn_offset , gbl_parallel_count );
7520+ }
0 commit comments