leveldb/db
Chris Mumford 53e280b568 Simplify unlocking in DeleteObsoleteFiles.
A recent change (4cb80b7ddc) to DBImpl::DeleteObsoleteFiles
unlocked DBImpl::mutex_ while deleting files to allow for
greater concurrency. This change improves on the prior in
a few areas:

1. The table is evicted from the table cache before unlocking
   the mutex. This should only improve performance.
2. This implementation is slightly simpler, but at the cost of
   a bit more memory usage.
3. A comment adding more detail as to why the mutex is being
   unlocked and why it is safe to do so.

PiperOrigin-RevId: 253111645
2019-06-13 15:22:52 -07:00
..
autocompact_test.cc Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
builder.cc Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
builder.h Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
c_test.c unsigned char -> uint8_t 2019-05-28 15:44:32 -07:00
c.cc unsigned char -> uint8_t 2019-05-28 15:44:32 -07:00
corruption_test.cc Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
db_impl.cc Simplify unlocking in DeleteObsoleteFiles. 2019-06-13 15:22:52 -07:00
db_impl.h Guard DBImpl::versions_ by mutex_. 2019-05-16 12:07:21 -07:00
db_iter.cc Switch to using C++ 11 override specifier. 2019-05-09 14:11:06 -07:00
db_iter.h Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
db_test.cc Switch to using C++ 11 override specifier. 2019-05-09 14:11:06 -07:00
dbformat_test.cc Added unit test for InternalKey::DecodeFrom with empty string. 2019-05-09 14:10:55 -07:00
dbformat.cc Using std::ostringstream in key DebugString. 2019-05-08 17:36:35 -07:00
dbformat.h unsigned char -> uint8_t 2019-05-28 15:44:32 -07:00
dumpfile.cc Switch to using C++ 11 override specifier. 2019-05-09 14:11:06 -07:00
fault_injection_test.cc Style cleanup. 2019-05-04 17:42:20 -07:00
filename_test.cc Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
filename.cc Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
filename.h Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
leveldbutil.cc Switch to using C++ 11 override specifier. 2019-05-09 14:11:06 -07:00
log_format.h Convert documentation to markdown. 2017-03-01 09:42:25 -08:00
log_reader.cc Style cleanup. 2019-05-04 17:42:20 -07:00
log_reader.h Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
log_test.cc Switch to using C++ 11 override specifier. 2019-05-09 14:11:06 -07:00
log_writer.cc Style cleanup. 2019-05-04 17:42:20 -07:00
log_writer.h Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
memtable.cc Style cleanup. 2019-05-04 17:42:20 -07:00
memtable.h Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
recovery_test.cc Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
repair.cc Switch to using C++ 11 override specifier. 2019-05-09 14:11:06 -07:00
skiplist_test.cc Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
skiplist.h Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
snapshot.h Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
table_cache.cc Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
table_cache.h Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
version_edit_test.cc Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
version_edit.cc Merge pull request #411 from proller:assert1 2019-05-09 08:37:49 -07:00
version_edit.h Replace "> >" with ">>" 2019-05-30 09:55:43 -07:00
version_set_test.cc Style cleanup. 2019-05-04 17:42:20 -07:00
version_set.cc Converted two for-loops to while-loops. 2019-05-13 13:51:11 -07:00
version_set.h Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
write_batch_internal.h Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
write_batch_test.cc Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
write_batch.cc Style cleanup. 2019-05-04 17:42:20 -07:00