diff options
author | drh <drh@noemail.net> | 2015-03-04 23:14:14 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-03-04 23:14:14 +0000 |
commit | 682a6ef6bd5caefc82a2c87e343c5929e13f3ac0 (patch) | |
tree | 8a0bc7356af420349263db0565983792ad334807 /src | |
parent | 0b7ff5c11bea7b8eb9e74ba8d0f65724bba239ed (diff) | |
download | sqlite-682a6ef6bd5caefc82a2c87e343c5929e13f3ac0.tar.gz sqlite-682a6ef6bd5caefc82a2c87e343c5929e13f3ac0.zip |
New requirements marks on INSERT and INDEXED BY and on some sqlite3_config()
options.
FossilOrigin-Name: c298ea0bd90d63673435bf8ceafbaeba3db6187d
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/main.c b/src/main.c index c90a95ab8..092cbf841 100644 --- a/src/main.c +++ b/src/main.c @@ -340,26 +340,28 @@ int sqlite3_config(int op, ...){ */ #if defined(SQLITE_THREADSAFE) && SQLITE_THREADSAFE>0 /* IMP: R-54466-46756 */ case SQLITE_CONFIG_SINGLETHREAD: { - /* Disable all mutexing */ - sqlite3GlobalConfig.bCoreMutex = 0; - sqlite3GlobalConfig.bFullMutex = 0; + /* EVIDENCE-OF: R-02748-19096 This option sets the threading mode to + ** Single-thread. */ + sqlite3GlobalConfig.bCoreMutex = 0; /* Disable mutex on core */ + sqlite3GlobalConfig.bFullMutex = 0; /* Disable mutex on connections */ break; } #endif #if defined(SQLITE_THREADSAFE) && SQLITE_THREADSAFE>0 /* IMP: R-20520-54086 */ case SQLITE_CONFIG_MULTITHREAD: { - /* Disable mutexing of database connections */ - /* Enable mutexing of core data structures */ - sqlite3GlobalConfig.bCoreMutex = 1; - sqlite3GlobalConfig.bFullMutex = 0; + /* EVIDENCE-OF: R-14374-42468 This option sets the threading mode to + ** Multi-thread. */ + sqlite3GlobalConfig.bCoreMutex = 1; /* Enable mutex on core */ + sqlite3GlobalConfig.bFullMutex = 0; /* Disable mutex on connections */ break; } #endif #if defined(SQLITE_THREADSAFE) && SQLITE_THREADSAFE>0 /* IMP: R-59593-21810 */ case SQLITE_CONFIG_SERIALIZED: { - /* Enable all mutexing */ - sqlite3GlobalConfig.bCoreMutex = 1; - sqlite3GlobalConfig.bFullMutex = 1; + /* EVIDENCE-OF: R-41220-51800 This option sets the threading mode to + ** Serialized. */ + sqlite3GlobalConfig.bCoreMutex = 1; /* Enable mutex on core */ + sqlite3GlobalConfig.bFullMutex = 1; /* Enable mutex on connections */ break; } #endif |