rocksdb/utilities
Zhen Li 9c24a5cb4d Fix persistent cache on windows (#6932)
Summary:
Persistent cache feature caused rocks db crash on windows. I posted a issue for it, https://github.com/facebook/rocksdb/issues/6919. I found this is because no "persistent_cache_key_prefix" is generated for persistent cache. Looking repo history, "GetUniqueIdFromFile" is not implemented on Windows. So my fix is adding "NewId()" function in "persistent_cache" and using it to generate prefix for persistent cache. In this PR, i also re-enable related test cases defined in "db_test2" and "persistent_cache_test" for windows.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/6932

Test Plan:
1. run related test cases in "db_test2" and "persistent_cache_test" on windows and see it passed.
2. manually run db_bench.exe with "read_cache_path" and verified.

Reviewed By: riversand963

Differential Revision: D21911608

Pulled By: cheng-chang

fbshipit-source-id: cdfd938d54a385edbb2836b13aaa1d39b0a6f1c2
2020-06-13 13:28:31 -07:00
..
backupable Fix more defects reported by Coverity Scan (#6935) 2020-06-04 15:35:08 -07:00
blob_db Move blob_log_{format,reader,writer}.{cc,h} to db/blob/ (#6960) 2020-06-09 15:16:05 -07:00
cassandra Remove gtest dependency in non-test code under utilities/cassandra (#6908) 2020-06-02 13:56:29 -07:00
checkpoint
compaction_filters
convenience
leveldb_options
memory
merge_operators Make StringAppendOperatorTest a parameterized test (#6930) 2020-06-04 14:17:11 -07:00
option_change_migration Revert "Update googletest from 1.8.1 to 1.10.0 (#6808)" (#6923) 2020-06-03 15:55:03 -07:00
options
persistent_cache Fix persistent cache on windows (#6932) 2020-06-13 13:28:31 -07:00
simulator_cache
table_properties_collectors
trace
transactions Fix some defects reported by Coverity Scan (#6933) 2020-06-04 15:46:27 -07:00
ttl
write_batch_with_index
debug.cc
env_librados.cc
env_librados.md
env_librados_test.cc
env_mirror.cc
env_mirror_test.cc
env_timed.cc
env_timed_test.cc
merge_operators.h
object_registry.cc
object_registry_test.cc
util_merge_operators_test.cc