Fix a spinlock leak for fault injector
@@ -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;
