There was an error while loading. Please reload this page.
1 parent 610a7f6 commit a6e5377Copy full SHA for a6e5377
2 files changed
pgvectorscale/src/access_method/build.rs
@@ -367,6 +367,7 @@ pub extern "C-unwind" fn ambuild(
367
parallel::toc_estimate_single_chunk(pcxt, tablescandesc_size_estimate);
368
369
pg_sys::InitializeParallelDSM(pcxt);
370
+ // need DSM segment to do parallel build
371
if (*pcxt).seg.is_null() {
372
parallel::cleanup_parallel_context(pcxt, snapshot);
373
None
pgvectorscale/src/access_method/build/parallel.rs
@@ -20,7 +20,6 @@ pub unsafe fn cleanup_parallel_context(
20
pcxt: *mut pg_sys::ParallelContext,
21
snapshot: *mut pg_sys::SnapshotData,
22
) {
23
- // need DSM segment to do parallel build
24
if ports::is_mvcc_snapshot(snapshot) {
25
pg_sys::UnregisterSnapshot(snapshot);
26
}
0 commit comments