leveldb/db
costan 0fa5a4f7b1 Extend thread safety annotations.
This CL makes it easier to reason about thread safety by:

1) Adding Clang thread safety annotations according to comments.
2) Expanding a couple of variable names, without adding extra lines of code.
3) Adding const in a couple of places.
4) Replacing an always-non-null const pointer with a reference.
5) Fixing style warnings in the modified files.

This CL does not annotate the DBImpl members that claim to be protected
by the instance mutex, but are accessed without the mutex being held.
Those members (and their unprotected accesses) will be addressed in
future CLs.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=189354657
2018-03-16 10:32:40 -07:00
..
autocompact_test.cc LevelDB 1.13 2013-08-21 11:12:47 -07:00
builder.cc Remove confusing and unnecessary if. 2017-09-01 14:41:28 -07:00
builder.h Remove extern from function declarations. 2018-03-12 09:24:48 -07:00
c_test.c Expose Env::GetTempDirectory() for use in C test. 2018-03-09 10:38:04 -08:00
c.cc Expose Env::GetTempDirectory() for use in C test. 2018-03-09 10:38:04 -08:00
corruption_test.cc LevelDB now attempts to reuse the preceding MANIFEST and log file when re-opened. 2015-08-11 14:56:39 -07:00
db_bench.cc Fix includes in util/testharness.h. 2018-03-16 10:31:48 -07:00
db_impl.cc Extend thread safety annotations. 2018-03-16 10:32:40 -07:00
db_impl.h Extend thread safety annotations. 2018-03-16 10:32:40 -07:00
db_iter.cc Release LevelDB 1.14 2013-09-19 13:49:19 -07:00
db_iter.h Remove extern from function declarations. 2018-03-12 09:24:48 -07:00
db_test.cc leveldb::DestroyDB will now delete empty directories. 2017-11-03 15:03:20 -07:00
dbformat_test.cc A number of fixes: 2011-10-31 17:22:06 +00:00
dbformat.cc Release leveldb 1.10 2013-05-14 17:03:07 -07:00
dbformat.h Remove extern from function declarations. 2018-03-12 09:24:48 -07:00
dumpfile.cc Release 1.18 2014-09-16 14:19:52 -07:00
fault_injection_test.cc Fix typo (forgotten reference operator) in test. 2017-10-10 11:47:13 -07:00
filename_test.cc Add tests for {Old}InfoLogFileName(). 2018-03-12 09:24:25 -07:00
filename.cc Remove extern from function declarations. 2018-03-12 09:24:48 -07:00
filename.h Remove extern from function declarations. 2018-03-12 09:24:48 -07:00
leveldbutil.cc Putting build artifacts in subdirectory. 2016-01-29 16:10:00 -08:00
log_format.h Convert documentation to markdown. 2017-03-01 09:42:25 -08:00
log_reader.cc Deleted unused assignments in Reader. 2017-11-03 15:03:44 -07:00
log_reader.h Suppress error reporting after seeking but before a valid First or Full record is encountered. 2015-12-09 10:34:57 -08:00
log_test.cc This CL fixes a bug encountered when reading records from leveldb files that have been split, as in a [] input task split. 2016-03-31 15:53:34 -07:00
log_writer.cc LevelDB now attempts to reuse the preceding MANIFEST and log file when re-opened. 2015-08-11 14:56:39 -07:00
log_writer.h LevelDB now attempts to reuse the preceding MANIFEST and log file when re-opened. 2015-08-11 14:56:39 -07:00
memtable.cc A number of fixes: 2011-10-31 17:22:06 +00:00
memtable.h Extend thread safety annotations. 2018-03-16 10:32:40 -07:00
recovery_test.cc leveldb: Report missing CURRENT manifest file as database corruption. 2017-07-10 14:14:00 -07:00
repair.cc Extend thread safety annotations. 2018-03-16 10:32:40 -07:00
skiplist_test.cc Fix signed/unsigned mismatch on VC++ builds 2016-02-19 13:59:19 -08:00
skiplist.h Move header guard below copyright banner. 2014-12-11 08:04:40 -08:00
snapshot.h Clean up layering of storage/leveldb/... 2014-12-11 08:02:45 -08:00
table_cache.cc Extend thread safety annotations. 2018-03-16 10:32:40 -07:00
table_cache.h Extend thread safety annotations. 2018-03-16 10:32:40 -07:00
version_edit_test.cc A number of fixes: 2011-10-31 17:22:06 +00:00
version_edit.cc A number of fixes: 2011-10-31 17:22:06 +00:00
version_edit.h A number of fixes: 2011-10-31 17:22:06 +00:00
version_set_test.cc A number of fixes: 2011-10-31 17:22:06 +00:00
version_set.cc Remove dead code. 2017-08-24 15:00:52 -07:00
version_set.h Remove extern from function declarations. 2018-03-12 09:24:48 -07:00
write_batch_internal.h Clean up layering of storage/leveldb/... 2014-12-11 08:02:45 -08:00
write_batch_test.cc LevelDB: Add WriteBatch::ApproximateSize(). 2017-07-10 14:13:30 -07:00
write_batch.cc LevelDB: Add WriteBatch::ApproximateSize(). 2017-07-10 14:13:30 -07:00