Skip to content

Commit

Permalink
properly categorizing EXPIRETIME and PEXPIRETIME (#2593)
Browse files Browse the repository at this point in the history
* properly categorizing EXPIRETIME and PEXPIRETIME

* release notes
  • Loading branch information
slorello89 authored Nov 21, 2023
1 parent 3ff58cc commit 79e8346
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Current package versions:

## Unreleased

No pending unreleased changes.
- Fix [#2593](https://github.com/StackExchange/StackExchange.Redis/pull/2593): `EXPIRETIME` and `PEXPIRETIME` miscategorized as `PrimaryOnly` commands causing them to fail when issued against a read-only replica.

## 2.7.4

Expand Down
4 changes: 2 additions & 2 deletions src/StackExchange.Redis/Enums/RedisCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ internal static bool IsPrimaryOnly(this RedisCommand command)
case RedisCommand.DEL:
case RedisCommand.EXPIRE:
case RedisCommand.EXPIREAT:
case RedisCommand.EXPIRETIME:
case RedisCommand.FLUSHALL:
case RedisCommand.FLUSHDB:
case RedisCommand.GEOSEARCHSTORE:
Expand Down Expand Up @@ -304,7 +303,6 @@ internal static bool IsPrimaryOnly(this RedisCommand command)
case RedisCommand.PERSIST:
case RedisCommand.PEXPIRE:
case RedisCommand.PEXPIREAT:
case RedisCommand.PEXPIRETIME:
case RedisCommand.PFADD:
case RedisCommand.PFMERGE:
case RedisCommand.PSETEX:
Expand Down Expand Up @@ -368,6 +366,7 @@ internal static bool IsPrimaryOnly(this RedisCommand command)
case RedisCommand.EVALSHA_RO:
case RedisCommand.EXEC:
case RedisCommand.EXISTS:
case RedisCommand.EXPIRETIME:
case RedisCommand.GEODIST:
case RedisCommand.GEOHASH:
case RedisCommand.GEOPOS:
Expand Down Expand Up @@ -402,6 +401,7 @@ internal static bool IsPrimaryOnly(this RedisCommand command)
case RedisCommand.MONITOR:
case RedisCommand.MULTI:
case RedisCommand.OBJECT:
case RedisCommand.PEXPIRETIME:
case RedisCommand.PFCOUNT:
case RedisCommand.PING:
case RedisCommand.PSUBSCRIBE:
Expand Down

0 comments on commit 79e8346

Please sign in to comment.