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 50da149 commit d1362a6Copy full SHA for d1362a6
contrib/pg_pathman/dsm_array.c
@@ -69,7 +69,7 @@ init_dsm_segment(size_t blocks_count, size_t block_size)
69
bool ret;
70
71
/* lock here */
72
- LWLockAcquire(pmstate->load_config_lock, LW_EXCLUSIVE);
+ LWLockAcquire(pmstate->dsm_init_lock, LW_EXCLUSIVE);
73
74
/* if there is already an existing segment then attach to it */
75
if (dsm_cfg->segment_handle != 0)
@@ -100,7 +100,7 @@ init_dsm_segment(size_t blocks_count, size_t block_size)
100
*/
101
dsm_pin_mapping(segment);
102
/* unlock here */
103
- LWLockRelease(pmstate->load_config_lock);
+ LWLockRelease(pmstate->dsm_init_lock);
104
105
return ret;
106
}
0 commit comments