rocksdb/port
shpala 9c7da963bc Fix a crash in WinEnvIO::GetSectorSize (#3975)
Summary:
Fix a crash in `WinEnvIO::GetSectorSize` that happens on old Windows systems (e.g Windows 7).
On old Windows systems that don't support querying StorageAccessAlignmentProperty using IOCTL_STORAGE_QUERY_PROPERTY, the flow calls a different DeviceIoControl with nullptr as lpBytesReturned.
When the code reaches this point, we get an access violation.
Closes https://github.com/facebook/rocksdb/pull/3975

Differential Revision: D8385186

Pulled By: ajkr

fbshipit-source-id: fae4c9b4b0a52c8a10182e1b35bcaa30dc393bbb
2018-06-12 13:45:18 -07:00
..
win Fix a crash in WinEnvIO::GetSectorSize (#3975) 2018-06-12 13:45:18 -07:00
dirent.h Change RocksDB License 2017-07-15 16:11:23 -07:00
likely.h Change RocksDB License 2017-07-15 16:11:23 -07:00
port_example.h Change RocksDB License 2017-07-15 16:11:23 -07:00
port_posix.cc port_posix: use posix_memalign() for aligned_alloc 2018-05-24 12:13:16 -07:00
port_posix.h Explictly fail writes if key or value is not smaller than 4GB 2018-02-09 14:57:54 -08:00
port.h Change RocksDB License 2017-07-15 16:11:23 -07:00
README reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
stack_trace.cc Comment out unused variables 2018-03-05 13:13:41 -08:00
stack_trace.h Change RocksDB License 2017-07-15 16:11:23 -07:00
sys_time.h Change RocksDB License 2017-07-15 16:11:23 -07:00
util_logger.h Change RocksDB License 2017-07-15 16:11:23 -07:00
xpress.h Change RocksDB License 2017-07-15 16:11:23 -07:00

This directory contains interfaces and implementations that isolate the
rest of the package from platform details.

Code in the rest of the package includes "port.h" from this directory.
"port.h" in turn includes a platform specific "port_<platform>.h" file
that provides the platform specific implementation.

See port_posix.h for an example of what must be provided in a platform
specific header file.