library/src/blockclass/BP-BlockClass.cc
// update the web result stack with new values.  Results are pulled
// by looking into this->web_result_lookup_parms and running lookups
// from there.
update the web result stack with new values.  Results are pulled
by looking into this->web_result_lookup_parms and running lookups
from there.
update the web result stack with new values . Results are pulled by looking into this - > web_result_lookup_parms and running lookups from there .
BP_ERROR_T Block::freshenWebResultStackFromParams()
{
	if(!this->mysqlSession)
		return ERR_FAILURE;
	BP_BLOCK_MARIADB_ENTER_CRITICAL_SECTION;
	if(!this->web_result_lookup_parms)
		BP_BLOCK_MARIADB_LEAVE_CRITICAL_SECTION_AND_RETURN_FROM_FUNC(ERR_FAILURE);
	this->destroyWebResultStack();
	this->destroyWebResultStackWhereClauses();
	BP_ERROR_T ret_val = this->fetchWebResultStackFromDB
	(
		this->web_result_lookup_parms->lock_for_audit,
		this->web_result_lookup_parms->lock_for_spidering,
		this->web_result_lookup_parms->lock_for_resolution_update,
		this->web_result_lookup_parms->id,
		this->web_result_lookup_parms->assessment_id,
		this->web_result_lookup_parms->type,
		this->web_result_lookup_parms->sha1,
		this->web_result_lookup_parms->href_literal,
		this->web_result_lookup_parms->href_like,
		this->web_result_lookup_parms->href_regexp,
		this->web_result_lookup_parms->host,
		this->web_result_lookup_parms->host_distinct,
		this->web_result_lookup_parms->base,
		this->web_result_lookup_parms->base_distinct,
		this->web_result_lookup_parms->path,
		this->web_result_lookup_parms->path_distinct,
		this->web_result_lookup_parms->script,
		this->web_result_lookup_parms->script_distinct,
		this->web_result_lookup_parms->result_is_host,
		this->web_result_lookup_parms->result_is_base,
		this->web_result_lookup_parms->result_is_path,
		this->web_result_lookup_parms->result_is_script,
		this->web_result_lookup_parms->status,
		this->web_result_lookup_parms->update_resolution_status,
		this->web_result_lookup_parms->origin_type_form_or_anchor_code,
		this->web_result_lookup_parms->commit_ts_ge,
		this->web_result_lookup_parms->commit_ts_le,
		this->web_result_lookup_parms->audit_start_ts_ge,
		this->web_result_lookup_parms->audit_start_ts_le,
		this->web_result_lookup_parms->audit_completed_ts_ge,
		this->web_result_lookup_parms->audit_completed_ts_le,
		this->web_result_lookup_parms->spidered,
		this->web_result_lookup_parms->spidered_parent_result_id,
		this->web_result_lookup_parms->spidered_ts_ge,
		this->web_result_lookup_parms->spidered_ts_le,
		this->web_result_lookup_parms->hits,
		this->web_result_lookup_parms->hits_ge,
		this->web_result_lookup_parms->hits_le,
		this->web_result_lookup_parms->disabled,
		this->web_result_lookup_parms->disable_code,
		this->web_result_lookup_parms->disabled_path,
		this->web_result_lookup_parms->disabled_path_code,
		this->web_result_lookup_parms->disabled_host,
		this->web_result_lookup_parms->disabled_host_code,
		this->web_result_lookup_parms->disabled_base,
		this->web_result_lookup_parms->disabled_base_code,
		this->web_result_lookup_parms->disabled_script,
		this->web_result_lookup_parms->disabled_script_code,
		this->web_result_lookup_parms->limit_bottom,
		this->web_result_lookup_parms->limit_top,
		this->web_result_lookup_parms->randomize_select_ids,
		this->web_result_lookup_parms->join_injection_sql,
		this->web_result_lookup_parms->where_injection_sql
	);
	BP_BLOCK_MARIADB_LEAVE_CRITICAL_SECTION_AND_RETURN_FROM_FUNC(ret_val);
}
BP_ERROR_T Block :: freshenWebResultStackFromParams ( ) { if ( ! this -> mysqlSession ) return ERR_FAILURE ; BP_BLOCK_MARIADB_ENTER_CRITICAL_SECTION ; if ( ! this -> web_result_lookup_parms ) BP_BLOCK_MARIADB_LEAVE_CRITICAL_SECTION_AND_RETURN_FROM_FUNC ( ERR_FAILURE ) ; this -> destroyWebResultStack ( ) ; this -> destroyWebResultStackWhereClauses ( ) ; BP_ERROR_T ret_val = this -> fetchWebResultStackFromDB ( this -> web_result_lookup_parms -> lock_for_audit , this -> web_result_lookup_parms -> lock_for_spidering , this -> web_result_lookup_parms -> lock_for_resolution_update , this -> web_result_lookup_parms -> id , this -> web_result_lookup_parms -> assessment_id , this -> web_result_lookup_parms -> type , this -> web_result_lookup_parms -> sha1 , this -> web_result_lookup_parms -> href_literal , this -> web_result_lookup_parms -> href_like , this -> web_result_lookup_parms -> href_regexp , this -> web_result_lookup_parms -> host , this -> web_result_lookup_parms -> host_distinct , this -> web_result_lookup_parms -> base , this -> web_result_lookup_parms -> base_distinct , this -> web_result_lookup_parms -> path , this -> web_result_lookup_parms -> path_distinct , this -> web_result_lookup_parms -> script , this -> web_result_lookup_parms -> script_distinct , this -> web_result_lookup_parms -> result_is_host , this -> web_result_lookup_parms -> result_is_base , this -> web_result_lookup_parms -> result_is_path , this -> web_result_lookup_parms -> result_is_script , this -> web_result_lookup_parms -> status , this -> web_result_lookup_parms -> update_resolution_status , this -> web_result_lookup_parms -> origin_type_form_or_anchor_code , this -> web_result_lookup_parms -> commit_ts_ge , this -> web_result_lookup_parms -> commit_ts_le , this -> web_result_lookup_parms -> audit_start_ts_ge , this -> web_result_lookup_parms -> audit_start_ts_le , this -> web_result_lookup_parms -> audit_completed_ts_ge , this -> web_result_lookup_parms -> audit_completed_ts_le , this -> web_result_lookup_parms -> spidered , this -> web_result_lookup_parms -> spidered_parent_result_id , this -> web_result_lookup_parms -> spidered_ts_ge , this -> web_result_lookup_parms -> spidered_ts_le , this -> web_result_lookup_parms -> hits , this -> web_result_lookup_parms -> hits_ge , this -> web_result_lookup_parms -> hits_le , this -> web_result_lookup_parms -> disabled , this -> web_result_lookup_parms -> disable_code , this -> web_result_lookup_parms -> disabled_path , this -> web_result_lookup_parms -> disabled_path_code , this -> web_result_lookup_parms -> disabled_host , this -> web_result_lookup_parms -> disabled_host_code , this -> web_result_lookup_parms -> disabled_base , this -> web_result_lookup_parms -> disabled_base_code , this -> web_result_lookup_parms -> disabled_script , this -> web_result_lookup_parms -> disabled_script_code , this -> web_result_lookup_parms -> limit_bottom , this -> web_result_lookup_parms -> limit_top , this -> web_result_lookup_parms -> randomize_select_ids , this -> web_result_lookup_parms -> join_injection_sql , this -> web_result_lookup_parms -> where_injection_sql ) ; BP_BLOCK_MARIADB_LEAVE_CRITICAL_SECTION_AND_RETURN_FROM_FUNC ( ret_val ) ; }
update the web result stack with new values.
update the web result stack with new values .
// ensure we have a msyql session to work with // enter critical section // ensure we have result lookup parameters // destroy data upfront // fetch the result stack (aka freshen) // return from function