public List<TRegionReplicaSet> getAllReplicaSets(String database) {
    return partitionInfo.getAllReplicaSets(database);
  }
Only leader use this interface.

@param database The specified Database
@return All Regions' RegionReplicaSet of the specified Database
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/partition/PartitionManager.java