@@ 154-163 (lines=10) @@ | ||
151 | } |
|
152 | ||
153 | $shards = $this->shardManager->getShards(); |
|
154 | foreach ($shards as $shard) { |
|
155 | $this->shardManager->selectShard($shard['rangeLow']); |
|
156 | ||
157 | $federationSql = $this->synchronizer->getDropAllSchema(); |
|
158 | if ($federationSql) { |
|
159 | $sql[] = "-- Work on Federation ID " . $shard['id'] . "\n" . |
|
160 | "USE FEDERATION " . $this->shardManager->getFederationName() . " (" . $this->shardManager->getDistributionKey() . " = " . $shard['rangeLow'].") WITH RESET, FILTERING = OFF;"; |
|
161 | $sql = array_merge($sql, $federationSql); |
|
162 | } |
|
163 | } |
|
164 | ||
165 | $sql[] = "USE FEDERATION ROOT WITH RESET;"; |
|
166 | $sql[] = "DROP FEDERATION " . $this->shardManager->getFederationName(); |
|
@@ 249-258 (lines=10) @@ | ||
246 | ||
247 | $shards = $this->shardManager->getShards(); |
|
248 | ||
249 | foreach ($shards as $shard) { |
|
250 | $this->shardManager->selectShard($shard['rangeLow']); |
|
251 | ||
252 | $federationSql = $operation($this->synchronizer, $federation); |
|
253 | if ($federationSql) { |
|
254 | $sql[] = "-- Work on Federation ID " . $shard['id'] . "\n" . |
|
255 | "USE FEDERATION " . $this->shardManager->getFederationName() . " (" . $this->shardManager->getDistributionKey() . " = " . $shard['rangeLow'].") WITH RESET, FILTERING = OFF;"; |
|
256 | $sql = array_merge($sql, $federationSql); |
|
257 | } |
|
258 | } |
|
259 | ||
260 | return $sql; |
|
261 | } |