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

executor: track memory usage for merge join #6172

Merged
merged 4 commits into from
Mar 31, 2018

Conversation

zz-jason
Copy link
Member

No description provided.

@XuHuaiyu
Copy link
Contributor

LGTM

@XuHuaiyu
Copy link
Contributor

/run-all-tests

@zz-jason zz-jason added status/LGT1 Indicates that a PR has LGTM 1. all-tests-passed labels Mar 28, 2018
e.memTracker.AttachTo(e.ctx.GetSessionVars().StmtCtx.MemTracker)

e.innerTable.memTracker = memory.NewTracker("innerTable", -1)
e.innerTable.memTracker.AttachTo(e.memTracker)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to detach e.innerTable.memTracker?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, innerTable.memTracker is a child of e.memTracker, e.memTracker is detached in Close.

Copy link
Member

@coocood coocood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@coocood coocood added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Mar 31, 2018
@coocood coocood merged commit 491f58d into pingcap:master Mar 31, 2018
@zz-jason zz-jason deleted the dev/mem/mergejoin branch April 2, 2018 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants