Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add log in applymetadata #11256

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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