Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move reserve_image_shape from acquire_start to acquire_configure #33

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

aliddell
Copy link
Member

@aliddell aliddell commented Jan 9, 2024

Having reserve_image_shape in acquire_start was an annoying workaround from when the Storage object was created during start and destroyed on stop. But now that storage is created at the latest during configure, we can reserve image shape earlier in the process.

@aliddell aliddell requested review from andy-sweet and nclack January 9, 2024 15:12
@aliddell aliddell changed the title Move reserve_image_shape from acquire-start to acquire-configure Move reserve_image_shape from acquire_start to acquire_configure Jan 9, 2024
@nclack
Copy link
Member

nclack commented Jan 9, 2024

Is reverse_image_shape still a necessary part of the Storage device api (kit/storage.h)?

@aliddell
Copy link
Member Author

aliddell commented Jan 9, 2024

Is reverse_image_shape still a necessary part of the Storage device api (kit/storage.h)?

It is if you don't want the image shape to be part of the storage configuration, or for there to be a lag on the first append. The Zarr driver at least needs to know what the image shape is in order to allocate chunk buffers.

Copy link
Member

@nclack nclack left a comment

Choose a reason for hiding this comment

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

lgtm!

@aliddell aliddell merged commit 6f4e6ff into acquire-project:main Jan 9, 2024
9 checks passed
@aliddell aliddell deleted the reserve-image-shape-on-set branch January 9, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants