diff options
author | dan <dan@noemail.net> | 2020-03-30 11:17:37 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2020-03-30 11:17:37 +0000 |
commit | 3e42b9917566acdc67a04b08dbf8fc3227fc785d (patch) | |
tree | 862e4bcc7d51fad75bb3c73bc886e5f491037393 /src | |
parent | 218da8c6f1258a04c9ecd3e4c5f1a52db13e59ee (diff) | |
download | sqlite-3e42b9917566acdc67a04b08dbf8fc3227fc785d.tar.gz sqlite-3e42b9917566acdc67a04b08dbf8fc3227fc785d.zip |
Fix "GCC_VESRION" typo in wal.c.
FossilOrigin-Name: fbd9378727141848ba2f5a8eee3076ecbd315e4a87b264c6d890103d56b2e4bc
Diffstat (limited to 'src')
-rw-r--r-- | src/wal.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -262,7 +262,7 @@ int sqlite3WalTrace = 0; ** WAL mode depends on atomic aligned 32-bit loads and stores in a few ** places. The following macros try to make this explicit. */ -#if GCC_VESRION>=5004000 +#if GCC_VERSION>=5004000 # define AtomicLoad(PTR) __atomic_load_n((PTR),__ATOMIC_RELAXED) # define AtomicStore(PTR,VAL) __atomic_store_n((PTR),(VAL),__ATOMIC_RELAXED) #else @@ -2604,7 +2604,8 @@ static int walTryBeginRead(Wal *pWal, int *pChanged, int useWal, int cnt){ for(i=1; i<WAL_NREADER; i++){ rc = walLockExclusive(pWal, WAL_READ_LOCK(i), 1); if( rc==SQLITE_OK ){ - mxReadMark = AtomicStore(pInfo->aReadMark+i,mxFrame); + AtomicStore(pInfo->aReadMark+i,mxFrame); + mxReadMark = mxFrame; mxI = i; walUnlockExclusive(pWal, WAL_READ_LOCK(i), 1); break; |