leveldb/db
hans@chromium.org 80e5b0d944 sync with upstream @21706995
Fixed race condition reported by Dave Smit (dizzyd@dizzyd,com)
on the leveldb mailing list.  We were not signalling
waiters after a trivial move from level-0.  The result was
that in some cases (hard to reproduce), a write would get
stuck forever waiting for the number of level-0 files to drop
below its hard limit.

The new code is simpler: there is just one condition variable
instead of two, and the condition variable is signalled after
every piece of background work finishes.  Also, all compaction
work (including for manual compactions) is done in the
background thread, and therefore we can remove the
"compacting_" variable.



git-svn-id: https://leveldb.googlecode.com/svn/trunk@31 62dab493-f737-651d-591e-8d6aee1b9529
2011-06-07 14:40:26 +00:00
..
builder.cc @20776309 2011-04-20 22:48:11 +00:00
builder.h @20776309 2011-04-20 22:48:11 +00:00
corruption_test.cc @20776309 2011-04-20 22:48:11 +00:00
db_bench.cc Update from upstream @21551990 2011-05-28 00:53:58 +00:00
db_impl.cc sync with upstream @21706995 2011-06-07 14:40:26 +00:00
db_impl.h sync with upstream @21706995 2011-06-07 14:40:26 +00:00
db_iter.cc @20776309 2011-04-20 22:48:11 +00:00
db_iter.h reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
db_test.cc Update from upstream @21551990 2011-05-28 00:53:58 +00:00
dbformat_test.cc @20776309 2011-04-20 22:48:11 +00:00
dbformat.cc @20776309 2011-04-20 22:48:11 +00:00
dbformat.h sync with upstream @ 21409451 2011-05-21 02:17:43 +00:00
filename_test.cc @20776309 2011-04-20 22:48:11 +00:00
filename.cc @20776309 2011-04-20 22:48:11 +00:00
filename.h @20776309 2011-04-20 22:48:11 +00:00
log_format.h reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
log_reader.cc sync with upstream @ 21409451 2011-05-21 02:17:43 +00:00
log_reader.h sync with upstream @ 21409451 2011-05-21 02:17:43 +00:00
log_test.cc Update from upstream @21551990 2011-05-28 00:53:58 +00:00
log_writer.cc sync with upstream @ 21409451 2011-05-21 02:17:43 +00:00
log_writer.h reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
memtable.cc Update from upstream @21551990 2011-05-28 00:53:58 +00:00
memtable.h sync with upstream @ 21409451 2011-05-21 02:17:43 +00:00
repair.cc sync with upstream @ 21409451 2011-05-21 02:17:43 +00:00
skiplist_test.cc reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
skiplist.h reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
snapshot.h sync with upstream @ 21409451 2011-05-21 02:17:43 +00:00
table_cache.cc reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
table_cache.h reverting disastrous MOE commit, returning to r21 2011-04-19 23:11:15 +00:00
version_edit_test.cc @20776309 2011-04-20 22:48:11 +00:00
version_edit.cc @20776309 2011-04-20 22:48:11 +00:00
version_edit.h @20776309 2011-04-20 22:48:11 +00:00
version_set.cc sync with upstream @ 21409451 2011-05-21 02:17:43 +00:00
version_set.h sync with upstream @ 21409451 2011-05-21 02:17:43 +00:00
write_batch_internal.h sync with upstream @ 21409451 2011-05-21 02:17:43 +00:00
write_batch_test.cc sync with upstream @ 21409451 2011-05-21 02:17:43 +00:00
write_batch.cc sync with upstream @ 21409451 2011-05-21 02:17:43 +00:00