MXS-2480 Fix creating of the in memory sqlite3 databases in PAMAuth
SQLITE_OPEN_URI flag was missing causing the databases to be created in disk instead of in memory. Also added info level log message from created database in clustrixmonitor.
This commit is contained in:
@ -121,6 +121,8 @@ MXS_MODULE* MXS_CREATE_MODULE()
|
||||
|
||||
static bool open_instance_database(const char* path, sqlite3** handle)
|
||||
{
|
||||
// This only opens database in memory if path is exactly ":memory:"
|
||||
// To use the URI filename SQLITE_OPEN_URI flag needs to be used.
|
||||
int rc = sqlite3_open_v2(path, handle, db_flags, NULL);
|
||||
|
||||
if (rc != SQLITE_OK)
|
||||
|
Reference in New Issue
Block a user