Skip to content

Commit

Permalink
Correct default value of EnableStarChannel (#6218)
Browse files Browse the repository at this point in the history
* Correct default value of EnableStarChannel

* Correct db config spec
  • Loading branch information
bbrks authored Apr 27, 2023
1 parent a463846 commit c8b30eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api/components/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ Database:
enable_star_channel:
description: Used to control whether Sync Gateway should use the all documents (*) channel.
type: boolean
default: false
default: true
max_length:
description: The maximum number of entries to maintain in the cache per channel.
type: integer
Expand Down
2 changes: 1 addition & 1 deletion rest/config_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func DefaultDbConfig(sc *StartupConfig) *DbConfig {
MaxWaitPending: base.Uint32Ptr(uint32(db.DefaultCachePendingSeqMaxWait.Milliseconds())),
MaxNumPending: base.IntPtr(db.DefaultCachePendingSeqMaxNum),
MaxWaitSkipped: base.Uint32Ptr(uint32(db.DefaultSkippedSeqMaxWait.Milliseconds())),
EnableStarChannel: base.BoolPtr(false),
EnableStarChannel: base.BoolPtr(true),
MaxLength: base.IntPtr(db.DefaultChannelCacheMaxLength),
MinLength: base.IntPtr(db.DefaultChannelCacheMinLength),
ExpirySeconds: base.IntPtr(int(db.DefaultChannelCacheAge.Seconds())),
Expand Down

0 comments on commit c8b30eb

Please sign in to comment.