rocksdb/file
Peter Dillinger 4e60663b31 Remove unnecessary, confusing 'extern' (#12300)
Summary:
In C++, `extern` is redundant in a number of cases:
* "Global" function declarations and definitions
* "Global" variable definitions when already declared `extern`

For consistency and simplicity, I've removed these in code that *we own*. In a couple of cases, I removed obsolete declarations, and for MagicNumber constants, I have consolidated the declarations into a header file (format.h)
as standard best practice would prescribe.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/12300

Test Plan: no functional changes, CI

Reviewed By: ajkr

Differential Revision: D53148629

Pulled By: pdillinger

fbshipit-source-id: fb8d927959892e03af09b0c0d542b0a3b38fd886
2024-01-29 10:38:08 -08:00
..
delete_scheduler.cc
delete_scheduler.h
delete_scheduler_test.cc
file_prefetch_buffer.cc Fix PREFETCH_BYTES_USEFUL stat calculation (#12251) 2024-01-18 19:09:49 -08:00
file_prefetch_buffer.h
file_util.cc
file_util.h Remove unnecessary, confusing 'extern' (#12300) 2024-01-29 10:38:08 -08:00
filename.cc
filename.h Remove unnecessary, confusing 'extern' (#12300) 2024-01-29 10:38:08 -08:00
line_file_reader.cc
line_file_reader.h
prefetch_test.cc Fix PREFETCH_BYTES_USEFUL stat calculation (#12251) 2024-01-18 19:09:49 -08:00
random_access_file_reader.cc
random_access_file_reader.h
random_access_file_reader_test.cc
read_write_util.cc
read_write_util.h Remove unnecessary, confusing 'extern' (#12300) 2024-01-29 10:38:08 -08:00
readahead_file_info.h
readahead_raf.cc
readahead_raf.h
sequence_file_reader.cc Pass rate_limiter_priority from SequentialFileReader to FS (#12296) 2024-01-25 18:20:31 -08:00
sequence_file_reader.h
sst_file_manager_impl.cc
sst_file_manager_impl.h
writable_file_writer.cc
writable_file_writer.h