We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e46d274 commit 163a4c4Copy full SHA for 163a4c4
src/backend/storage/file/cfs.c
@@ -1408,6 +1408,7 @@ static bool cfs_gc_directory(int worker_id, char const* path)
1408
static void cfs_gc_cancel(int sig)
1409
{
1410
cfs_gc_stop = true;
1411
+ SetLatch(MyLatch);
1412
}
1413
1414
static void cfs_sighup(SIGNAL_ARGS)
@@ -1464,7 +1465,7 @@ static void cfs_gc_bgworker_main(Datum arg)
1464
1465
rc = WaitLatch(MyLatch,
1466
WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH,
1467
timeout /* ms */ );
- if (rc & WL_POSTMASTER_DEATH)
1468
+ if ((rc & WL_POSTMASTER_DEATH) || cfs_gc_stop)
1469
exit(1);
1470
1471
ResetLatch(MyLatch);
0 commit comments