[tracker/sam/fix-load: 3/5] libtracker-data: Don't create double transactions in LOAD



commit 138c364fac699c9094231ec6e224683cb2e33868
Author: Sam Thursfield <sam afuera me uk>
Date:   Sun Mar 8 16:21:33 2020 +0100

    libtracker-data: Don't create double transactions in LOAD

 src/libtracker-data/tracker-data-update.c | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 64ebee694..23f11b005 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -3075,10 +3075,6 @@ tracker_data_load_turtle_file (TrackerData  *data,
        GError *inner_error = NULL;
        gboolean in_transaction = FALSE;
 
-       tracker_data_begin_transaction (data, &inner_error);
-       if (inner_error)
-               goto failed;
-
        in_transaction = TRUE;
        reader = tracker_turtle_reader_new (file, &inner_error);
        if (inner_error)
@@ -3116,10 +3112,6 @@ tracker_data_load_turtle_file (TrackerData  *data,
                        goto failed;
        }
 
-       if (inner_error)
-               goto failed;
-
-       tracker_data_commit_transaction (data, &inner_error);
        if (inner_error)
                goto failed;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]