Skip to content

[db] Do not allocate additional key-values #1756#1757

Merged
michaelvlach merged 1 commit intomainfrom
1756-db-do-not-allocate-additional-key-values
Feb 23, 2026
Merged

[db] Do not allocate additional key-values #1756#1757
michaelvlach merged 1 commit intomainfrom
1756-db-do-not-allocate-additional-key-values

Conversation

@michaelvlach
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings February 23, 2026 06:24
@michaelvlach michaelvlach linked an issue Feb 23, 2026 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Feb 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agdb Ready Ready Preview, Comment Feb 23, 2026 6:26am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request attempts to change the semantics of the reserve_capacity function in DbKeyValues from accepting an "additional capacity" parameter to accepting a "total capacity" parameter. The parameter is renamed from additional to len, and the internal logic changes from kvs.reserve(storage, kvs.len() + additional) to kvs.reserve(storage, len).

Changes:

  • Renamed parameter from additional to len in reserve_capacity function
  • Changed capacity calculation from kvs.len() + additional to just len

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@michaelvlach michaelvlach merged commit 4651c5e into main Feb 23, 2026
15 checks passed
@michaelvlach michaelvlach deleted the 1756-db-do-not-allocate-additional-key-values branch February 23, 2026 06:32
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.

[db] Do not allocate additional key-values

3 participants