[tracker/wip/carlosg/data-update-error-propagation: 7/11] libtracker-data: Propagate error from might_flush()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/data-update-error-propagation: 7/11] libtracker-data: Propagate error from might_flush()
- Date: Sun, 21 Feb 2021 19:31:58 +0000 (UTC)
commit 8967ceb088733ae4d5a301218e5b363319e6fc5f
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Feb 21 19:02:24 2021 +0100
libtracker-data: Propagate error from might_flush()
src/libtracker-data/tracker-data-update.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index ed0d10af0..c0b51e180 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2270,6 +2270,7 @@ resource_buffer_switch (TrackerData *data,
GError **error)
{
TrackerDataUpdateBufferGraph *graph_buffer;
+ GError *inner_error = NULL;
if (data->resource_buffer != NULL &&
g_strcmp0 (data->resource_buffer->graph->graph, graph) == 0 &&
@@ -2281,7 +2282,9 @@ resource_buffer_switch (TrackerData *data,
/* large INSERTs with thousands of resources could lead to
high peak memory usage due to the update buffer
flush the buffer if it already contains 1000 resources */
- tracker_data_update_buffer_might_flush (data, NULL);
+ tracker_data_update_buffer_might_flush (data, &inner_error);
+ if (inner_error)
+ return FALSE;
data->resource_buffer = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]