(a) Unless a longer mandatory minimum sentence is otherwise required by law or the court imposes a longer aggravated durational departure under subdivision 2, a person who is convicted of a violent crime that is a felony must be committed to the commissioner of corrections for a mandatory sentence of at least the length of the presumptive sentence under the Sentencing Guidelines if the court determines on the record at the time of sentencing that the person has two or more prior felony convictions for violent crimes. The court shall impose and execute the prison sentence regardless of whether the guidelines presume an executed prison sentence.
Any person convicted and sentenced as required by this subdivision is not eligible for probation, parole, discharge, or work release, until that person has served the full term of imprisonment imposed by the court, notwithstanding sections 24126., 24219., 24305., 24404., 60912., and 609135..