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

posix-file-impl: Do not keep device-id on board #2272

Merged

Conversation

xemul
Copy link
Contributor

@xemul xemul commented May 28, 2024

This number is needed in two places

  • construction-time, to find the io-queue object to use
  • run-time, to construct file handle

File handle uses device id to create another posix_file_impl object on another shard, so it needs device id to find io-queue for it. However, when creating handle, the deivce-id can be obtained by file from the io-queue it references.

This number is needed in two places

- construction-time, to find the io-queue object to use
- run-time, to construct file handle

File handle uses device id to create another posix_file_impl object on
another shard, so it needs device id to find io-queue for it. However,
when creating handle, the deivce-id can be obtained by file from the
io-queue it references.

Signed-off-by: Pavel Emelyanov <[email protected]>
@avikivity avikivity merged commit 717f0f9 into scylladb:master May 28, 2024
14 checks passed
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.

2 participants