diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/db_impl.cc | 3 | ||||
-rw-r--r-- | db/dbformat.cc | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/db/db_impl.cc b/db/db_impl.cc index 058d56d..5c30d6f 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -1276,10 +1276,11 @@ Status DBImpl::MakeRoomForWrite(bool force) { } else if (imm_ != NULL) { // We have filled up the current memtable, but the previous // one is still being compacted, so we wait. + Log(options_.info_log, "Current memtable full; waiting...\n"); bg_cv_.Wait(); } else if (versions_->NumLevelFiles(0) >= config::kL0_StopWritesTrigger) { // There are too many level-0 files. - Log(options_.info_log, "waiting...\n"); + Log(options_.info_log, "Too many L0 files; waiting...\n"); bg_cv_.Wait(); } else { // Attempt to switch to a new memtable and trigger compaction of old diff --git a/db/dbformat.cc b/db/dbformat.cc index 28e11b3..20a7ca4 100644 --- a/db/dbformat.cc +++ b/db/dbformat.cc @@ -26,7 +26,7 @@ std::string ParsedInternalKey::DebugString() const { (unsigned long long) sequence, int(type)); std::string result = "'"; - result += user_key.ToString(); + result += EscapeString(user_key.ToString()); result += buf; return result; } |