• S
    Fix db_stress build on mac · ebb823f7
    Sagar Vemuri 提交于
    Summary:
    I noticed, while debugging an unrelated issue, that db_stress is failing to build on mac, leading to a failed `make all`.
    ```
    $ make db_stress -j4
    ...
    tools/db_stress.cc:862:69: error: cannot initialize a parameter of type 'uint64_t *' (aka 'unsigned long long *') with an rvalue of type 'size_t *' (aka 'unsigned long *')
            status = FLAGS_env->GetFileSize(FLAGS_expected_values_path, &size);
                                                                        ^~~~~
    ./include/rocksdb/env.h:277:66: note: passing argument to parameter 'file_size' here
      virtual Status GetFileSize(const std::string& fname, uint64_t* file_size) = 0;
                                                                     ^
    1 error generated.
    make: *** [tools/db_stress.o] Error 1
    make: *** Waiting for unfinished jobs....
    ```
    Closes https://github.com/facebook/rocksdb/pull/3839
    
    Differential Revision: D7979236
    
    Pulled By: sagar0
    
    fbshipit-source-id: 0615e7bb5405bade71e4203803bf723720422d62
    ebb823f7
db_stress.cc 104.0 KB