Skip to content

fix: record new appendable memenv files#1329

Open
Haihan-Jiang wants to merge 1 commit into
google:mainfrom
Haihan-Jiang:codex/leveldb-memenv-appendable-file-map
Open

fix: record new appendable memenv files#1329
Haihan-Jiang wants to merge 1 commit into
google:mainfrom
Haihan-Jiang:codex/leveldb-memenv-appendable-file-map

Conversation

@Haihan-Jiang
Copy link
Copy Markdown

Summary

Fixes #1328.

InMemoryEnv::NewAppendableFile() currently creates a new FileState for missing files but does not store that pointer back into file_map_. The map entry remains null, so later operations that look up the filename can dereference a null FileState.

This stores the newly-created FileState in the map and adds a regression test that creates a file with NewAppendableFile(), appends data, then verifies size and sequential reads through the environment.

Validation

  • git diff --check

@Haihan-Jiang Haihan-Jiang marked this pull request as ready for review May 24, 2026 06:56
@Haihan-Jiang
Copy link
Copy Markdown
Author

This is ready for review from my side. Could someone take a look when convenient?

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.

Bug: NewAppendableFile does not record newly created FileState in file_map_

1 participant