summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorcmumford <cmumford@google.com>2019-03-11 12:32:50 -0700
committerChris Mumford <cmumford@google.com>2019-03-11 13:41:25 -0700
commitdd906262fd364c08a652dfa914f9995f6b7608a9 (patch)
tree83d9168c7464626742d41e853ae26e39cd645810 /.travis.yml
parentcf1d1ab255de2a741695aec53d83e4f808f9e819 (diff)
downloadleveldb-dd906262fd364c08a652dfa914f9995f6b7608a9.tar.gz
Make InMemoryEnv more consistent with filesystem based Env's.
Env's (like the POSIX Env) which use an actual filesystem behave differently than InMemoryEnv with regards to writing data to a currently open file. InMemoryEnv::NewWritableFile would previously delete that file, if it was open, before creating a new file so any previously open file would be unlinked. This change truncates an open file so that subsequent reads will read that new data. This should have no impact on leveldb as it never has the same file open for both read and write access. This change is only being made for tests (specifically a future change to corruption_test) to allow them to be decoupled from the underlying platform and allow them to use an Env. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=237858231
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions