Skip to content

Commit

Permalink
Add log in applymetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
hfu94 committed Mar 18, 2024
1 parent 853b349 commit 1ca817e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fdbserver/ApplyMetadataMutation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,14 @@ class ApplyMetadataMutationsImpl {
writeMutation(privatized);
}

void checkClientInfo(MutationRef m) {
if (!m.param1.startsWith(fdbClientInfoPrefixRange.begin)) {
return;
}

TraceEvent("ApplyMetaDataMutationCheckClientInfo").detail("Key", m.param1);
}

// Generates private mutations for the target storage server, instructing it to create a checkpoint.
void checkSetCheckpointKeys(MutationRef m) {
if (!m.param1.startsWith(checkpointPrefix)) {
Expand Down Expand Up @@ -1379,6 +1387,8 @@ class ApplyMetadataMutationsImpl {
toCommit->addTransactionInfo(spanContext);
}

checkClientInfo(m);

if (m.type == MutationRef::SetValue && isSystemKey(m.param1)) {
checkSetKeyServersPrefix(m);
checkSetServerKeysPrefix(m);
Expand Down

0 comments on commit 1ca817e

Please sign in to comment.