If, on the partition of any land, the share or interest of any person in the land is subject to any right, charge, or interest vested in any other person, that right, charge, or interest shall, subject to any apportionment or adjustment made under section 292, attach to and affect the land or interest that is allocated by the partition order to the owner of the first-mentioned share or interest.