Skip to content

Commit

Permalink
streamingccl: clarify that license is needed on both clusters
Browse files Browse the repository at this point in the history
At least one user was confused by this. Perhaps this small update will
make it more clear.

Fixes cockroachdb#111525

Release note: None
  • Loading branch information
stevendanna committed Sep 30, 2023
1 parent 757c17f commit 1e7d9ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/ccl/streamingccl/streamingest/stream_ingest_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func newStreamIngestManagerWithPrivilegesCheck(
execCfg.Settings, execCfg.NodeInfo.LogicalClusterID(), "REPLICATION")
if enterpriseCheckErr != nil {
return nil, pgerror.Wrap(enterpriseCheckErr,
pgcode.InsufficientPrivilege, "replication requires enterprise license")
pgcode.InsufficientPrivilege, "physical replication requires an enterprise license on the secondary (and primary) cluster")
}

isAdmin, err := evalCtx.SessionAccessor.HasAdminRole(ctx)
Expand Down
2 changes: 1 addition & 1 deletion pkg/ccl/streamingccl/streamproducer/replication_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func newReplicationStreamManagerWithPrivilegesCheck(
execCfg.Settings, execCfg.NodeInfo.LogicalClusterID(), "REPLICATION")
if enterpriseCheckErr != nil {
return nil, pgerror.Wrap(enterpriseCheckErr,
pgcode.InsufficientPrivilege, "replication requires enterprise license")
pgcode.InsufficientPrivilege, "physical replication requires an enterprise license on the primary (and secondary) cluster")
}

return &replicationStreamManagerImpl{evalCtx: evalCtx, txn: txn}, nil
Expand Down

0 comments on commit 1e7d9ea

Please sign in to comment.