Repository: incubator-hawq Updated Branches: refs/heads/master f04c9673f -> 0899c5343
HAWQ-1417. Do not need to release resource owner in exception block Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/0899c534 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/0899c534 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/0899c534 Branch: refs/heads/master Commit: 0899c534393d1b1410728a9e674b01cb04f2dcfb Parents: f04c967 Author: Ming LI <[email protected]> Authored: Wed Apr 12 11:18:37 2017 +0800 Committer: Ming LI <[email protected]> Committed: Wed Apr 12 11:18:37 2017 +0800 ---------------------------------------------------------------------- src/backend/commands/analyze.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/0899c534/src/backend/commands/analyze.c ---------------------------------------------------------------------- diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c index be1f3f7..c3cf8ac 100644 --- a/src/backend/commands/analyze.c +++ b/src/backend/commands/analyze.c @@ -782,12 +782,6 @@ void analyzeStmt(VacuumStmt *stmt, List *relids, int preferred_seg_num) UnsetActiveQueryResource(); SetActiveQueryResource(savedResource); - ResourceOwnerRelease(owner, - RESOURCE_RELEASE_BEFORE_LOCKS, - false, true); - CurrentResourceOwner = oldOwner; - ResourceOwnerDelete(owner); - /* Carry on with error handling. */ PG_RE_THROW(); } @@ -803,7 +797,7 @@ void analyzeStmt(VacuumStmt *stmt, List *relids, int preferred_seg_num) ResourceOwnerRelease(owner, RESOURCE_RELEASE_BEFORE_LOCKS, - false, true); + false, false); CurrentResourceOwner = oldOwner; ResourceOwnerDelete(owner);
