Skip to content

fix: update user_collection_quota#2328

Draft
taddes wants to merge 1 commit into
masterfrom
refactor/spanner-update-user-collection-quotas-STOR-564
Draft

fix: update user_collection_quota#2328
taddes wants to merge 1 commit into
masterfrom
refactor/spanner-update-user-collection-quotas-STOR-564

Conversation

@taddes
Copy link
Copy Markdown
Collaborator

@taddes taddes commented May 22, 2026

Description

Updates to simplified upsert in SpannerDb::update_user_collection_quotas

Metric note:
Moved the storage.quota.update_existing_totals into the if expr. I looked into Metrics::start_timer and found that because the .clone() produces an unbound temporary, the drop op runs at the end of the statement, so the "timer" records ~0 ms and is effectively a counter, not a duration. The change is therefore a reduction in count volume equal to the rate of quota disabled calls. The label is storage.quota.* and firing it where no quota work happens seemed misleading.

Issue(s)

Closes STOR-564.

@taddes taddes self-assigned this May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant