mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 12:36:25 +00:00
Better way to disable VFS
This commit is contained in:
parent
e7eda74df9
commit
311ddd6030
3 changed files with 5 additions and 7 deletions
|
|
@ -376,8 +376,7 @@ void linphone_core_call_log_storage_init(LinphoneCore *lc) {
|
|||
|
||||
linphone_core_call_log_storage_close(lc);
|
||||
|
||||
//ret=_linphone_sqlite3_open(lc->logs_db_file, &db);
|
||||
ret = sqlite3_open(lc->logs_db_file, &db);
|
||||
ret=_linphone_sqlite3_open(lc->logs_db_file, &db);
|
||||
if(ret != SQLITE_OK) {
|
||||
errmsg = sqlite3_errmsg(db);
|
||||
ms_error("Error in the opening: %s.\n", errmsg);
|
||||
|
|
|
|||
|
|
@ -1141,8 +1141,7 @@ void linphone_core_friends_storage_init(LinphoneCore *lc) {
|
|||
|
||||
linphone_core_friends_storage_close(lc);
|
||||
|
||||
//ret = _linphone_sqlite3_open(lc->friends_db_file, &db);
|
||||
ret = sqlite3_open(lc->friends_db_file, &db);
|
||||
ret = _linphone_sqlite3_open(lc->friends_db_file, &db);
|
||||
if (ret != SQLITE_OK) {
|
||||
errmsg = sqlite3_errmsg(db);
|
||||
ms_error("Error in the opening: %s.\n", errmsg);
|
||||
|
|
|
|||
|
|
@ -80,7 +80,8 @@ int _linphone_sqlite3_open(const char *db_file, sqlite3 **db) {
|
|||
#endif
|
||||
|
||||
char *utf8_filename = utf8_convert(db_file);
|
||||
ret = sqlite3_open_v2(utf8_filename, db, flags, LINPHONE_SQLITE3_VFS);
|
||||
//ret = sqlite3_open_v2(utf8_filename, db, flags, LINPHONE_SQLITE3_VFS);
|
||||
ret = sqlite3_open_v2(utf8_filename, db, flags, NULL); // Do not use VFS until all issues are resolved
|
||||
ms_free(utf8_filename);
|
||||
|
||||
if (ret != SQLITE_OK) return ret;
|
||||
|
|
@ -695,8 +696,7 @@ void linphone_core_message_storage_init(LinphoneCore *lc){
|
|||
|
||||
linphone_core_message_storage_close(lc);
|
||||
|
||||
//ret=_linphone_sqlite3_open(lc->chat_db_file,&db);
|
||||
ret = sqlite3_open(lc->chat_db_file,&db);
|
||||
ret=_linphone_sqlite3_open(lc->chat_db_file,&db);
|
||||
if(ret != SQLITE_OK) {
|
||||
errmsg=sqlite3_errmsg(db);
|
||||
ms_error("Error in the opening: %s.\n", errmsg);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue