Skip to content

Commit 737ff44

Browse files
committed
docs(table): correct the stale FOR UPDATE reference in the quota note
The advisory quota check describes createTable's count as the authoritative FOR UPDATE read; that lock is now FOR NO KEY UPDATE.
1 parent ba3dd81 commit 737ff44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/lib/table/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ function workspaceTableLimitReached(maxTables: number): ForbiddenOperationError
506506
* Advisory table-quota check for a caller that is about to make the user pay
507507
* for work before {@link createTable} would run.
508508
*
509-
* The authoritative check is the `FOR UPDATE` count inside `createTable`'s
509+
* The authoritative check is the `FOR NO KEY UPDATE` count inside `createTable`'s
510510
* transaction and stays there — this one races, by construction, because the
511511
* ceiling can be reached (or cleared) during whatever the caller does next. It
512512
* exists so that "next" is not a multi-gigabyte upload: the CSV import used to

0 commit comments

Comments
 (0)