• M
    Add CreateFrom methods to Env/FileSystem (#8174) · 281ac9c8
    mrambacher 提交于
    Summary:
    - Added CreateFromString method to Env and FilesSystem to replace LoadEnv/Load.  This method/signature is a precursor to making these classes extend Customizable.
    
    - Added CreateFromSystem to Env.  This method standardizes creating an Env from the environment variables.  Previously, some places would check TEST_ENV_URI and others would also check TEST_FS_URI.  Now the code is more command/standardized.
    
    - Added CreateFromFlags to Env.  These method allows Env to be create from string options (such as GFLAGS options) in a more standard way.
    
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/8174
    
    Reviewed By: zhichao-cao
    
    Differential Revision: D28999603
    
    Pulled By: mrambacher
    
    fbshipit-source-id: 88e6911e7e91f908458a7fe10a20e93ecbc275fb
    281ac9c8
db_options.cc 41.3 KB