Skip to content

Commit 5e1fd6d

Browse files
authored
Merge pull request #53 from launchdarkly/eb/ch93198/dynamodb-prefix
make prefix concatenation in DynamoDB consistent with other SDKs
2 parents 3f7fe2d + 39b0455 commit 5e1fd6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/LaunchDarkly/Impl/Integrations/DynamoDbFeatureRequester.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct($baseUri, $sdkKey, $options)
2626
$this->_client = new DynamoDbClient($dynamoDbOptions);
2727

2828
$prefix = isset($options['dynamodb_prefix']) ? $options['dynamodb_prefix'] : '';
29-
$this->_prefix = ($prefix != null && $prefix != '') ? ($prefix . '/') : '';
29+
$this->_prefix = ($prefix != null && $prefix != '') ? ($prefix . ':') : '';
3030
}
3131

3232
protected function readItemString($namespace, $key)

tests/DynamoDbFeatureRequesterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function putItem($namespace, $key, $version, $json)
5353
self::$dynamoDbClient->putItem(array(
5454
'TableName' => self::TABLE_NAME,
5555
'Item' => array(
56-
'namespace' => array('S' => self::PREFIX . '/' . $namespace),
56+
'namespace' => array('S' => self::PREFIX . ':' . $namespace),
5757
'key' => array('S' => $key),
5858
'version' => array('N' => strval($version)),
5959
'item' => array('S' => $json)

0 commit comments

Comments
 (0)