MXS-2480 Use in-memory-database in PAM authenticator

This was already fixed in develop, but the fix is both small and useful
so should be backported.
This commit is contained in:
Esa Korhonen
2019-06-13 17:42:42 +03:00
parent d68f66fede
commit acfaae9d46
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ PamInstance* PamInstance::create(char **options)
bool error = false;
/* This handle may be used from multiple threads, set full mutex. */
sqlite3* dbhandle = NULL;
int db_flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE |
int db_flags = SQLITE_OPEN_URI | SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE |
SQLITE_OPEN_SHAREDCACHE | SQLITE_OPEN_FULLMUTEX;
if (sqlite3_open_v2(pam_db_name.c_str(), &dbhandle, db_flags, NULL) != SQLITE_OK)
{