Skip to content

Commit a6e5377

Browse files
committed
Move DSM segment comment to correct place
1 parent 610a7f6 commit a6e5377

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

pgvectorscale/src/access_method/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ pub extern "C-unwind" fn ambuild(
367367
parallel::toc_estimate_single_chunk(pcxt, tablescandesc_size_estimate);
368368

369369
pg_sys::InitializeParallelDSM(pcxt);
370+
// need DSM segment to do parallel build
370371
if (*pcxt).seg.is_null() {
371372
parallel::cleanup_parallel_context(pcxt, snapshot);
372373
None

pgvectorscale/src/access_method/build/parallel.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ pub unsafe fn cleanup_parallel_context(
2020
pcxt: *mut pg_sys::ParallelContext,
2121
snapshot: *mut pg_sys::SnapshotData,
2222
) {
23-
// need DSM segment to do parallel build
2423
if ports::is_mvcc_snapshot(snapshot) {
2524
pg_sys::UnregisterSnapshot(snapshot);
2625
}

0 commit comments

Comments
 (0)