All the foregoing provisions of this article shall apply to cases where there are more than one surety, so as to enable a surety discharging a joint debt, in whole or in part, either pending the action or after joint or several judgments, to control the same against his cosureties for the purpose of compelling them to contribute their respective shares of the amount so paid by him.
Ala. Code § 8-3-9 (1975)