• K
    Fixed cache key for block cache · 4dcc0c89
    Kosie van der Merwe 提交于
    Summary:
    Added function to `RandomAccessFile` to generate an unique ID for that file. Currently only `PosixRandomAccessFile` has this behaviour implemented and only on Linux.
    
    Changed how key is generated in `Table::BlockReader`.
    
    Added tests to check whether the unique ID is stable, unique and not a prefix of another unique ID. Added tests to see that `Table` uses the cache more efficiently.
    
    Test Plan: make check
    
    Reviewers: chip, vamsi, dhruba
    
    Reviewed By: chip
    
    CC: leveldb
    
    Differential Revision: https://reviews.facebook.net/D8145
    4dcc0c89
env_posix.cc 25.3 KB