Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Takuka0311 committed Nov 25, 2024
1 parent db3994f commit d1d43c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions core/models/MetricValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ void UntypedMultiDoubleValues::DelValue(StringView key) {
mValues.erase(key);
}

std::map<StringView, double>::const_iterator UntypedMultiDoubleValues::MultiKeyValusBegin() const {
std::map<StringView, double>::const_iterator UntypedMultiDoubleValues::ValusBegin() const {
return mValues.begin();
}

std::map<StringView, double>::const_iterator UntypedMultiDoubleValues::MultiKeyValusEnd() const {
std::map<StringView, double>::const_iterator UntypedMultiDoubleValues::ValusEnd() const {
return mValues.end();
}

size_t UntypedMultiDoubleValues::MultiKeyValusSize() const {
size_t UntypedMultiDoubleValues::ValusSize() const {
return mValues.size();
}

Expand Down
6 changes: 3 additions & 3 deletions core/models/MetricValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ struct UntypedMultiDoubleValues {
void SetValueNoCopy(StringView key, double val);
void DelValue(StringView key);

std::map<StringView, double>::const_iterator MultiKeyValusBegin() const;
std::map<StringView, double>::const_iterator MultiKeyValusEnd() const;
size_t MultiKeyValusSize() const;
std::map<StringView, double>::const_iterator ValusBegin() const;
std::map<StringView, double>::const_iterator ValusEnd() const;
size_t ValusSize() const;

size_t DataSize() const;
void ResetPipelineEvent(PipelineEvent* ptr) { mMetricEventPtr = ptr; }
Expand Down
4 changes: 2 additions & 2 deletions core/runner/FlusherRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ void FlusherRunner::Dispatch(SenderQueueItem* item) {
if (!BOOL_FLAG(enable_full_drain_mode) && Application::GetInstance()->IsExiting()
&& item->mFlusher->Name() == "flusher_sls") {
DiskBufferWriter::GetInstance()->PushToDiskBuffer(item, 3);
SenderQueueManager::GetInstance()->RemoveItem(item->mFlusher->GetQueueKey(), item);
SenderQueueManager::GetInstance()->RemoveItem(item->mQueueKey, item);
} else {
PushToHttpSink(item);
}
break;
default:
SenderQueueManager::GetInstance()->RemoveItem(item->mFlusher->GetQueueKey(), item);
SenderQueueManager::GetInstance()->RemoveItem(item->mQueueKey, item);
break;
}
}
Expand Down

0 comments on commit d1d43c5

Please sign in to comment.