Skip to content

Commit 44f2ee0

Browse files
Minor Change @4.6.0 release (#36080)
### Packages impacted by this PR @azure/cosmos ### Issues associated with this PR ### Describe the problem that is addressed by this PR ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary) --------- Co-authored-by: ajnovice <[email protected]>
1 parent 2111f37 commit 44f2ee0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

sdk/cosmosdb/cosmos/review/cosmos-node.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ export const Constants: {
635635
WriteRequestFailureCountThreshold: number;
636636
ConsecutiveFailureCountResetIntervalInMS: number;
637637
ENABLE_MULTIPLE_WRITABLE_LOCATIONS: string;
638-
ENABLE_PER_PARTITION_FAILOVER_BEHAVIOR: string;
638+
EnablePerPartitionFailover: string;
639639
DefaultUnavailableLocationExpirationTimeMS: number;
640640
ThrottleRetryCount: string;
641641
ThrottleRetryWaitTimeInMs: string;

sdk/cosmosdb/cosmos/src/common/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export const Constants = {
210210

211211
// ServiceDocument Resource
212212
ENABLE_MULTIPLE_WRITABLE_LOCATIONS: "enableMultipleWriteLocations",
213-
ENABLE_PER_PARTITION_FAILOVER_BEHAVIOR: "enablePerPartitionFailoverBehavior",
213+
EnablePerPartitionFailover: "enablePerPartitionFailoverBehavior",
214214

215215
// Background refresh time
216216
DefaultUnavailableLocationExpirationTimeMS: 5 * 60 * 1000,

sdk/cosmosdb/cosmos/src/documents/DatabaseAccount.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ export class DatabaseAccount {
9494
} else {
9595
this.enableMultipleWritableLocations = false;
9696
}
97-
if (body[Constants.ENABLE_PER_PARTITION_FAILOVER_BEHAVIOR]) {
97+
if (body[Constants.EnablePerPartitionFailover]) {
9898
this.enablePerPartitionFailover =
99-
body[Constants.ENABLE_PER_PARTITION_FAILOVER_BEHAVIOR] === true ||
100-
body[Constants.ENABLE_PER_PARTITION_FAILOVER_BEHAVIOR] === "true";
99+
body[Constants.EnablePerPartitionFailover] === true ||
100+
body[Constants.EnablePerPartitionFailover] === "true";
101101
}
102102
}
103103
}

0 commit comments

Comments
 (0)