Fix windows build after refactoring
Missing and duplicate files in CMake Missing definition of port::Crash
This commit is contained in:
parent
3dbf4ba220
commit
ac5e441ad8
@ -161,6 +161,7 @@ set(SOURCES
|
|||||||
util/env_hdfs.cc
|
util/env_hdfs.cc
|
||||||
util/event_logger.cc
|
util/event_logger.cc
|
||||||
util/file_util.cc
|
util/file_util.cc
|
||||||
|
util/file_reader_writer.cc
|
||||||
util/filter_policy.cc
|
util/filter_policy.cc
|
||||||
util/hash.cc
|
util/hash.cc
|
||||||
util/hash_cuckoo_rep.cc
|
util/hash_cuckoo_rep.cc
|
||||||
@ -254,7 +255,6 @@ set(TESTS
|
|||||||
db/corruption_test.cc
|
db/corruption_test.cc
|
||||||
db/cuckoo_table_db_test.cc
|
db/cuckoo_table_db_test.cc
|
||||||
db/db_iter_test.cc
|
db/db_iter_test.cc
|
||||||
db/db_log_iter_test.cc
|
|
||||||
db/db_test.cc
|
db/db_test.cc
|
||||||
db/db_compaction_filter_test.cc
|
db/db_compaction_filter_test.cc
|
||||||
db/db_compaction_test.cc
|
db/db_compaction_test.cc
|
||||||
|
@ -227,6 +227,13 @@ int truncate(const char* path, int64_t len) {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Crash(const std::string& srcfile, int srcline) {
|
||||||
|
fprintf(stdout, "Crashing at %s:%d\n", srcfile.c_str(), srcline);
|
||||||
|
fflush(stdout);
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace port
|
} // namespace port
|
||||||
} // namespace rocksdb
|
} // namespace rocksdb
|
||||||
|
|
||||||
|
@ -554,6 +554,7 @@ inline void* pthread_getspecific(pthread_key_t key) {
|
|||||||
// using C-runtime to implement. Note, this does not
|
// using C-runtime to implement. Note, this does not
|
||||||
// feel space with zeros in case the file is extended.
|
// feel space with zeros in case the file is extended.
|
||||||
int truncate(const char* path, int64_t length);
|
int truncate(const char* path, int64_t length);
|
||||||
|
void Crash(const std::string& srcfile, int srcline);
|
||||||
|
|
||||||
} // namespace port
|
} // namespace port
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user