diff options
author | dan <dan@noemail.net> | 2020-06-04 16:07:51 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2020-06-04 16:07:51 +0000 |
commit | ec206a7d34c7fc36c71087d0eb3ac9cb8cb4a59b (patch) | |
tree | 8e178dcd54242692e5761d61098f195d6c96b413 /src | |
parent | 21b473de781e05c32cf609d3e7472730bca0aa08 (diff) | |
download | sqlite-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |