]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Support dynamic sector size in alignment validation for Windows. (#8613)
authorBurton Li <pul@microsoft.com>
Mon, 16 Aug 2021 14:30:57 +0000 (07:30 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 16 Aug 2021 14:31:57 +0000 (07:31 -0700)
commit9b0a32f80263cf528e56f8facc786e211cc0668c
tree6e7f212f2bcf36e31ae32c3e0104346e0e0da10d
parent48c468c22e2a5ec5bcd39c8d3a6787c3973c7add
Support dynamic sector size in alignment validation for Windows. (#8613)

Summary:
- Use dynamic section size when calling IsSectorAligned()
- Support relative path for GetSectorSize().
- Move buffer and sector alignment check to assert for better retail performance.
- Typo fixes.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/8613

Reviewed By: ajkr

Differential Revision: D30136082

Pulled By: mrambacher

fbshipit-source-id: e8cb849befdcae4fea99de5ed5dd6565e612425f
port/win/env_win.cc
port/win/io_win.cc
port/win/io_win.h