Skip to content

Commit

Permalink
Merge pull request #2 from polyfractal/preference_primary
Browse files Browse the repository at this point in the history
GET requests should go to primary shard
  • Loading branch information
cjsaylor committed Mar 3, 2016
2 parents de23faf + 0653ecb commit 684c1d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/IndexRotator.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public function getPrimaryIndex()
$primaryPayload = [
'index' => $this->configurationIndexName,
'type' => static::TYPE_CONFIGURATION,
'id' => static::PRIMARY_ID
'id' => static::PRIMARY_ID,
'preference' => '_primary'
];
try {
$primary = $this->engine->get($primaryPayload);
Expand Down

0 comments on commit 684c1d9

Please sign in to comment.