[tracker/unsupported-ontology-change: 1/4] libtracker-data: Fix error check for unsupported ontology change
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/unsupported-ontology-change: 1/4] libtracker-data: Fix error check for unsupported ontology change
- Date: Mon, 12 Sep 2011 15:34:33 +0000 (UTC)
commit 5dac309724da61682ec5dc1b55a1b96ca01a7ea3
Author: JÃrg Billeter <j bitron ch>
Date: Mon Sep 12 16:53:43 2011 +0200
libtracker-data: Fix error check for unsupported ontology change
src/libtracker-data/tracker-data-manager.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 750f269..eecf56c 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -4019,7 +4019,9 @@ tracker_data_manager_init (TrackerDBManagerFlags flags,
uri_id_map,
&ontology_error);
- if (ontology_error && ontology_error->code == TRACKER_DATA_UNSUPPORTED_ONTOLOGY_CHANGE) {
+ if (g_error_matches (ontology_error,
+ TRACKER_DATA_ONTOLOGY_ERROR,
+ TRACKER_DATA_UNSUPPORTED_ONTOLOGY_CHANGE)) {
g_debug ("\nUnsupported ontology change, replaying journal\n");
g_error_free (ontology_error);
@@ -4122,7 +4124,9 @@ tracker_data_manager_init (TrackerDBManagerFlags flags,
uri_id_map,
&ontology_error);
- if (ontology_error && ontology_error->code == TRACKER_DATA_UNSUPPORTED_ONTOLOGY_CHANGE) {
+ if (g_error_matches (ontology_error,
+ TRACKER_DATA_ONTOLOGY_ERROR,
+ TRACKER_DATA_UNSUPPORTED_ONTOLOGY_CHANGE)) {
g_debug ("\nUnsupported ontology change, replaying journal\n");
g_error_free (ontology_error);
@@ -4231,7 +4235,9 @@ tracker_data_manager_init (TrackerDBManagerFlags flags,
}
}
- if (ontology_error && ontology_error->code == TRACKER_DATA_UNSUPPORTED_ONTOLOGY_CHANGE) {
+ if (g_error_matches (ontology_error,
+ TRACKER_DATA_ONTOLOGY_ERROR,
+ TRACKER_DATA_UNSUPPORTED_ONTOLOGY_CHANGE)) {
g_debug ("\nUnsupported ontology change, replaying journal\n");
g_error_free (ontology_error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]