Skip to content

Commit

Permalink
Log user_defined_timestamps_persisted flag in event logger (#11683)
Browse files Browse the repository at this point in the history
Summary:
As titled, and also removed an undefined and unused member function in for ColumnFamilyData

Pull Request resolved: #11683

Reviewed By: ajkr

Differential Revision: D48156290

Pulled By: jowlyzhang

fbshipit-source-id: cc99aaafe69db6611af3854cb2b2ebc5044941f7
  • Loading branch information
jowlyzhang authored and facebook-github-bot committed Aug 8, 2023
1 parent e214964 commit 9c2ebcc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions db/column_family.h
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,6 @@ class ColumnFamilyData {
return file_metadata_cache_res_mgr_;
}

SequenceNumber GetFirstMemtableSequenceNumber() const;

static const uint32_t kDummyColumnFamilyDataId;

// Keep track of whether the mempurge feature was ever used.
Expand Down
2 changes: 2 additions & 0 deletions db/event_helpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ void EventHelpers::LogAndNotifyTableFileCreationFinished(
<< "column_family_name" << table_properties.column_family_name
<< "column_family_id" << table_properties.column_family_id
<< "comparator" << table_properties.comparator_name
<< "user_defined_timestamps_persisted"
<< table_properties.user_defined_timestamps_persisted
<< "merge_operator" << table_properties.merge_operator_name
<< "prefix_extractor_name"
<< table_properties.prefix_extractor_name << "property_collectors"
Expand Down
1 change: 0 additions & 1 deletion db_stress_tool/db_stress_test_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,6 @@ void StressTest::PreloadDbAndReopenAsReadOnly(int64_t number_of_keys,

const Slice v(value, sz);


std::string ts;
if (FLAGS_user_timestamp_size > 0) {
ts = GetNowNanos();
Expand Down
4 changes: 4 additions & 0 deletions table/table_properties.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ std::string TableProperties::ToString(const std::string& prop_delim,
AppendProperty(result, "comparator name",
comparator_name.empty() ? std::string("N/A") : comparator_name,
prop_delim, kv_delim);
AppendProperty(result, "user defined timestamps persisted",
user_defined_timestamps_persisted ? std::string("true")
: std::string("false"),
prop_delim, kv_delim);

AppendProperty(
result, "merge operator name",
Expand Down

0 comments on commit 9c2ebcc

Please sign in to comment.