new memory barrier before pager assignment

This commit is contained in:
Minglei Jin 2024-07-23 19:21:20 +08:00
parent 04f71c884f
commit ec1062a12f
1 changed files with 2 additions and 0 deletions

View File

@ -957,6 +957,8 @@ static int tdbPagerInitPage(SPager *pPager, SPage *pPage, int (*initPage)(SPage
return -1; return -1;
} }
tmemory_barrier();
pPage->pPager = pPager; pPage->pPager = pPager;
TDB_UNLOCK_PAGE(pPage); TDB_UNLOCK_PAGE(pPage);