aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <dan@noemail.net>2020-06-04 16:07:51 +0000
committerdan <dan@noemail.net>2020-06-04 16:07:51 +0000
commitec206a7d34c7fc36c71087d0eb3ac9cb8cb4a59b (patch)
tree8e178dcd54242692e5761d61098f195d6c96b413 /src
parent21b473de781e05c32cf609d3e7472730bca0aa08 (diff)
downloadsqlite-ec206a7d34c7fc36c71087d0eb3ac9cb8cb4a59b.tar.gz
sqlite-ec206a7d34c7fc36c71087d0eb3ac9cb8cb4a59b.zip
Use AtomicStore() to set values in the wal-index hash table.
FossilOrigin-Name: 1ab30c75f2fe14d1ee77d0eace4e29ba8f805d63e2da0897b111ea1311f409aa
Diffstat (limited to 'src')
-rw-r--r--src/wal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wal.c b/src/wal.c
index 52087e129..c6d4476e7 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -1096,7 +1096,7 @@ static int walIndexAppend(Wal *pWal, u32 iFrame, u32 iPage){
if( (nCollide--)==0 ) return SQLITE_CORRUPT_BKPT;
}
sLoc.aPgno[idx] = iPage;
- sLoc.aHash[iKey] = (ht_slot)idx;
+ AtomicStore(&sLoc.aHash[iKey], (ht_slot)idx);
#ifdef SQLITE_ENABLE_EXPENSIVE_ASSERT
/* Verify that the number of entries in the hash table exactly equals