[tracker-miners/wip/carlosg/cli-improvements: 16/47] tracker-miner-fs: Ensure to unset tracker:available on pre-unmount
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/cli-improvements: 16/47] tracker-miner-fs: Ensure to unset tracker:available on pre-unmount
- Date: Wed, 19 Aug 2020 11:31:30 +0000 (UTC)
commit a4cf2771dc4d603257497f6f31dfa30970df3683
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Aug 16 13:15:50 2020 +0200
tracker-miner-fs: Ensure to unset tracker:available on pre-unmount
This is a "save yourself" signal, the intended final effect is that
the unmount does in effect happen. Unsetting tracker:available will
help tracker-extract figure it out without special handling of the
pre-unmount stage.
src/miners/fs/tracker-miner-files.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 1769af6cb..312d62d65 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -1372,6 +1372,9 @@ mount_pre_unmount_cb (GVolumeMonitor *volume_monitor,
tracker_indexing_tree_remove (indexing_tree, mount_root);
g_object_unref (mount_root);
+ /* Set mount point status in tracker-store */
+ set_up_mount_point (mf, mount_root, FALSE, NULL);
+
g_free (uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]