[tracker/wip/carlosg/sparql1.1: 124/145] libtracker-data: Handle NULL interface on WAL thread
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/sparql1.1: 124/145] libtracker-data: Handle NULL interface on WAL thread
- Date: Thu, 18 Jul 2019 22:34:28 +0000 (UTC)
commit fd4ba3535b8ad79382f18b8abb2e7e1977394724
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jul 9 16:38:14 2019 +0200
libtracker-data: Handle NULL interface on WAL thread
This is unexpected, but shouldn't cause a hard crash.
src/libtracker-data/tracker-db-manager.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index cdb351747..e1309a135 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -1164,7 +1164,8 @@ wal_checkpoint_thread (gpointer data)
if (!db_manager->db.wal_iface)
db_manager->db.wal_iface = init_writable_db_interface (db_manager);
- wal_checkpoint (db_manager->db.wal_iface, FALSE);
+ if (db_manager->db.wal_iface)
+ wal_checkpoint (db_manager->db.wal_iface, FALSE);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]