Skip to content

Conversation

@jasontedor
Copy link
Member

This commit moves the shared cache pre-allocation code out of bootstrap, and instead to the searchable snapshots code. We go out of our way to only grant permissions to a specific library used for the pre-allocation.

Additionally, to ensure our interfaces are sound, we add a macOS implementation based on fcntl and ftruncate.

Relates #70285 (backport)

This commit moves the shared cache pre-allocation code out of bootstrap,
and instead to the searchable snapshots code. We go out of our way to
only grant permissions to a specific library used for the
pre-allocation.

Additionally, to ensure our interfaces are sound, we add a macOS
implementation based on fcntl and ftruncate.

Co-authored-by: Yannick Welsch <yannick@welsch.lu>
@jasontedor jasontedor merged commit 77b968c into elastic:7.x Mar 11, 2021
@jasontedor jasontedor deleted the move-pre-allocate-shared-cache-7.x branch March 11, 2021 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant