Skip to content

allows large databases using Csize_t instead Cuint for :MapSize; fixe…#40

Closed
sadit wants to merge 1 commit into
JuliaDatabases:mainfrom
sadit:master
Closed

allows large databases using Csize_t instead Cuint for :MapSize; fixe…#40
sadit wants to merge 1 commit into
JuliaDatabases:mainfrom
sadit:master

Conversation

@sadit

@sadit sadit commented Jun 19, 2024

Copy link
Copy Markdown

allows large databases using Csize_t instead Cuint for :MapSize; fixes some typos

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 70.775% (+0.1%) from 70.641%
when pulling e6bc196 on sadit:master
into bdc2df6 on wildart:master.

@meggart meggart left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks a lot for the PR

Comment thread src/env.jl
**Note:** Consult LMDB documentation for particular values of environment parameters and flags.
"""
function setindex!(env::Environment, val::Cuint, option::Symbol)
function setindex!(env::Environment, val::Int, option::Symbol)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we use val::Integer instead to avoid breaking existing code

maleadt added a commit to maleadt/LMDB.jl that referenced this pull request May 1, 2026
Fixes upstream issue JuliaDatabases#38, PR JuliaDatabases#37, PR JuliaDatabases#40: setindex! went through Cuint
which silently truncated map sizes that didn't fit in 32 bits.
@maleadt

maleadt commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Superseded by 1de1895

@maleadt maleadt closed 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.

4 participants