Skip to content

Commit b67ab26

Browse files
committed
Comments on executions.proto and mutable_state_impl.go
1 parent 4b95cf3 commit b67ab26

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

proto/internal/temporal/server/api/persistence/v1/executions.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,11 @@ message WorkflowExecutionInfo {
292292

293293
message ExecutionStats {
294294
int64 history_size = 1;
295-
// Total size in bytes of all external payloads referenced in the workflow history.
295+
// Total size in bytes of all external payloads referenced in the entire history tree of the execution, not just the current branch.
296+
// This number doesn't include payloads in buffered events.
296297
int64 external_payload_size = 2;
297-
// Total count of external payloads referenced in the workflow history.
298+
// Total count of external payloads referenced in the entire history tree of the execution, not just the current branch.
299+
// This number doesn't include payloads in buffered events.
298300
int64 external_payload_count = 3;
299301
}
300302

service/history/workflow/mutable_state_impl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6400,7 +6400,7 @@ func (ms *MutableStateImpl) AddHistorySize(size int64) {
64006400
}
64016401

64026402
func (ms *MutableStateImpl) GetExternalPayloadSize() int64 {
6403-
return ms.executionInfo.ExecutionStats.ExternalPayloadSize
6403+
return ms.executionInfo.GetExecutionStats().GetExternalPayloadSize()
64046404
}
64056405

64066406
func (ms *MutableStateImpl) AddExternalPayloadSize(size int64) {
@@ -6411,7 +6411,7 @@ func (ms *MutableStateImpl) AddExternalPayloadSize(size int64) {
64116411
}
64126412

64136413
func (ms *MutableStateImpl) GetExternalPayloadCount() int64 {
6414-
return ms.executionInfo.ExecutionStats.ExternalPayloadCount
6414+
return ms.executionInfo.GetExecutionStats().GetExternalPayloadCount()
64156415
}
64166416

64176417
func (ms *MutableStateImpl) AddExternalPayloadCount(count int64) {

0 commit comments

Comments
 (0)