rocksdb/port
Andrew Kryczka f0c509e2c8 Return finer-granularity status from Env::GetChildren*
Summary:
It'd be nice to use the error status type to distinguish
between user error and system error. For example, GetChildren can fail
listing a backup directory's contents either because a bad path was provided
(user error) or because an operation failed, e.g., a remote storage service
call failed (system error). In the former case, we want to continue and treat
the backup directory as empty; in the latter case, we want to immediately
propagate the error to the caller.

This diff uses NotFound to indicate user error and IOError to indicate
system error. Previously IOError indicated both.
Closes https://github.com/facebook/rocksdb/pull/1644

Differential Revision: D4312157

Pulled By: ajkr

fbshipit-source-id: 51b4f24
2016-12-12 12:54:13 -08:00
..
win Return finer-granularity status from Env::GetChildren* 2016-12-12 12:54:13 -08:00
README reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
dirent.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
likely.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
port.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
port_example.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
port_posix.cc Alpine Linux Build (#990) 2016-04-22 16:49:12 -07:00
port_posix.h Handle overflow case of rate limiter's paramters 2016-05-27 16:15:28 -07:00
stack_trace.cc stack_trace,cc: The current Stacktrace code does not compile for FreeBSD (#1153) 2016-06-05 17:40:43 -07:00
stack_trace.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
sys_time.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
util_logger.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
xpress.h Introduce XPRESS compresssion on Windows. (#1081) 2016-04-19 22:54:24 -07:00

README

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.