Skip to content

Commit 6808fda

Browse files
committed
sessiondata: allow 'bulk_low' QoS selection
This is a valid AC priority intended for use by large operations. Release note: none. Epic: none.
1 parent 8b1e1a9 commit 6808fda

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/sql/sessiondatapb/local_only_session_data.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@ func ParseQoSLevelFromString(val string) (_ QoSLevel, ok bool) {
387387
return UserLow, true
388388
case NormalName:
389389
return Normal, true
390+
case BulkLowName:
391+
return BulkLow, true
390392
default:
391393
return 0, false
392394
}
@@ -414,7 +416,7 @@ func ToQoSLevelString(value int32) string {
414416
// Validate checks for a valid user QoSLevel setting before returning it.
415417
func (e QoSLevel) Validate() QoSLevel {
416418
switch e {
417-
case Normal, UserHigh, UserLow:
419+
case Normal, UserHigh, UserLow, BulkLow:
418420
return e
419421
default:
420422
panic(errors.AssertionFailedf("use of illegal user QoSLevel: %s", e.String()))

0 commit comments

Comments
 (0)