From f26a139d89eba71bd28946e1f14bf59b8139cd11 Mon Sep 17 00:00:00 2001 From: Islam AbdelRahman Date: Thu, 13 Oct 2016 11:56:27 -0700 Subject: [PATCH] Log successful AddFile Summary: Log successful AddFile Test Plan: visually check LOG file Reviewers: yiwu, andrewkr, lightmark, sdong Reviewed By: sdong Subscribers: andrewkr, jkedgar, dhruba Differential Revision: https://reviews.facebook.net/D65019 --- db/db_impl_add_file.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/db_impl_add_file.cc b/db/db_impl_add_file.cc index 20962cd6f..e5f9658bd 100644 --- a/db/db_impl_add_file.cc +++ b/db/db_impl_add_file.cc @@ -324,6 +324,10 @@ Status DBImpl::AddFile(ColumnFamilyHandle* column_family, if (target_level_list[i] == 0) { total_l0_files += 1; } + Log(InfoLogLevel::INFO_LEVEL, immutable_db_options_.info_log, + "[AddFile] External SST file %s was ingested in L%d with path %s\n", + file_info_list[i].file_path.c_str(), target_level_list[i], + db_fname_list[i].c_str()); } cfd->internal_stats()->AddCFStats(InternalStats::INGESTED_NUM_KEYS_TOTAL, total_keys);