forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: tenants don't unsplit manually split ranges on DROP {TABLE,INDEX}
This requires us to scan the meta ranges, which is not something that secondary tenants are allowed to do. Leaving the ranges split until their sticky bit expires is fine, the existing code is just an optimization. This does serve as a reminder that: 1. we should make sure to remove sticky bits when we destroy a tenant's keyspace (see cockroachdb#48775). 2. we should probably not allow tenants to run `ALTER TABLE ... SPLIT AT` statements because we're not placing hard range count limits on tenants anywhere else. If others agree, I'll file an issue.
- Loading branch information
1 parent
8f9e631
commit f4cdaab
Showing
2 changed files
with
39 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters