Example: lrd_commit

In the following example, lrd_commit commits the transaction in the vuser_end section of the script, after completing all database activities.

int LR_FUNC vuser_end() {
	lr_think_time(11);
	lrd_commit( 0,Con1, 0 );
	lrd_close_connection(&Con1, 0, 0);
	lrd_end(0);
	return VUSER_OK;
}