Skip to content

Commit

Permalink
get rid of otherInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
longquanzheng committed Jun 4, 2018
1 parent 6f08661 commit 7c3c6ae
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 91 deletions.
4 changes: 2 additions & 2 deletions .gen/go/admin/idl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 2 additions & 38 deletions .gen/go/admin/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .gen/go/history/idl.go

Large diffs are not rendered by default.

40 changes: 2 additions & 38 deletions .gen/go/history/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion idl/github.com/uber/cadence/admin.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ struct InquireWorkflowExecutionRequest {
struct InquireWorkflowExecutionResponse{
10: optional string shardId
20: optional string historyAddr
30: optional string otherInfo
40: optional string mutableStateInCache
50: optional string mutableStateInDatabase
}
1 change: 0 additions & 1 deletion idl/github.com/uber/cadence/history.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ struct InquireMutableStateRequest{
}

struct InquireMutableStateResponse{
10: optional string otherInfo
30: optional string mutableStateInCache
40: optional string mutableStateInDatabase
}
Expand Down
1 change: 0 additions & 1 deletion service/frontend/adminHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ func (adh *AdminHandler) InquireWorkflowExecution(ctx context.Context, request *
return &admin.InquireWorkflowExecutionResponse{
ShardId: common.StringPtr(shardIDForOutput),
HistoryAddr: common.StringPtr(historyAddr),
OtherInfo: resp.OtherInfo,
MutableStateInDatabase: resp.MutableStateInDatabase,
MutableStateInCache: resp.MutableStateInCache,
}, err
Expand Down
8 changes: 0 additions & 8 deletions service/history/historyEngine.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,14 +555,6 @@ func (e *historyEngineImpl) InquireMutableState(ctx context.Context,
if cacheHit && cacheCtx.msBuilder != nil {
msb := cacheCtx.msBuilder
retResp.MutableStateInCache, retError = e.toMutableStateJSON(msb)
otherInfo := ""
if len(msb.updateActivityInfos) > 0 {
otherInfo += "updateActivityInfos is not empty;"
}
if len(msb.deleteActivityInfos) > 0 {
otherInfo += "deleteActivityInfos is not empty;"
}
retResp.OtherInfo = &otherInfo
}

msb, retError := dbCtx.loadWorkflowExecution()
Expand Down

0 comments on commit 7c3c6ae

Please sign in to comment.