提交 2a7b2bf6 编写于 作者: P Pengzhou Tang 提交者: Tang Pengzhou

Fix a spinlock leak for fault injector

上级 2e34370a
......@@ -734,9 +734,12 @@ FaultInjector_MarkEntryAsResume(
}
if (entryLocal->faultInjectorType != FaultInjectorTypeSuspend)
{
FiLockRelease();
ereport(ERROR,
(errcode(ERRCODE_FAULT_INJECT),
errmsg("only suspend fault can be resumed")));
}
entryLocal->faultInjectorType = FaultInjectorTypeResume;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册