Added synchronization to the setting of partition data