[tracker-miners/wip/carlosg/cli-improvements: 5/30] tracker-miner-fs: Ensure to unset tracker:available on pre-unmount




commit a871bfc12e4327638081cfc3913437acf375a991
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 1f37ffa93..55033cccb 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -1373,6 +1373,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]