summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2018-07-15 11:51:24 +0200
committerSam Thursfield <sam@afuera.me.uk>2018-07-15 15:43:14 +0200
commit820790d460a8634ac1ae09838907547ff897b200 (patch)
tree480af09d9793dbc91496bd8777843cb608bf17ed
parent7fc76e1be68fa7ea955b7b70b44b53e31958bbed (diff)
downloadtracker-820790d460a8634ac1ae09838907547ff897b200.tar.gz
libtracker-miner/tracker-miner-fs.c: Rename item_move() parameter
-rw-r--r--src/libtracker-miner/tracker-miner-fs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 0af1a5834..45084d094 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1500,7 +1500,7 @@ item_remove (TrackerMinerFS *fs,
static gboolean
item_move (TrackerMinerFS *fs,
- GFile *file,
+ GFile *dest_file,
GFile *source_file)
{
gchar *uri, *source_uri, *sparql;
@@ -1511,11 +1511,11 @@ item_move (TrackerMinerFS *fs,
TrackerDirectoryFlags source_flags, flags;
gboolean recursive;
- uri = g_file_get_uri (file);
+ uri = g_file_get_uri (dest_file);
source_uri = g_file_get_uri (source_file);
/* FIXME: Should check the _NO_STAT on TrackerDirectoryFlags first! */
- file_info = g_file_query_info (file,
+ file_info = g_file_query_info (dest_file,
G_FILE_ATTRIBUTE_STANDARD_TYPE,
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
NULL, NULL);
@@ -1550,7 +1550,7 @@ item_move (TrackerMinerFS *fs,
g_debug ("Source file '%s' not yet in store, indexing '%s' "
"from scratch", source_uri, uri);
- retval = item_add_or_update (fs, file, G_PRIORITY_DEFAULT, FALSE);
+ retval = item_add_or_update (fs, dest_file, G_PRIORITY_DEFAULT, FALSE);
g_free (source_uri);
g_free (uri);
@@ -1564,13 +1564,13 @@ item_move (TrackerMinerFS *fs,
uri);
tracker_indexing_tree_get_root (fs->priv->indexing_tree, source_file, &source_flags);
- tracker_indexing_tree_get_root (fs->priv->indexing_tree, file, &flags);
+ tracker_indexing_tree_get_root (fs->priv->indexing_tree, dest_file, &flags);
recursive = ((source_flags & TRACKER_DIRECTORY_FLAG_RECURSE) != 0 &&
(flags & TRACKER_DIRECTORY_FLAG_RECURSE) != 0 &&
g_file_info_get_file_type (file_info) == G_FILE_TYPE_DIRECTORY);
/* Delete destination item from store if any */
- item_remove (fs, file, FALSE);
+ item_remove (fs, dest_file, FALSE);
/* If the original location is recursive, but the destination location
* is not, remove all children.
@@ -1579,11 +1579,11 @@ item_move (TrackerMinerFS *fs,
(source_flags & TRACKER_DIRECTORY_FLAG_RECURSE) != 0)
item_remove (fs, source_file, TRUE);
- g_signal_emit (fs, signals[MOVE_FILE], 0, file, source_file, recursive, &sparql);
+ g_signal_emit (fs, signals[MOVE_FILE], 0, dest_file, source_file, recursive, &sparql);
if (sparql) {
/* Add new task to processing pool */
- task = tracker_sparql_task_new_take_sparql_str (file, sparql);
+ task = tracker_sparql_task_new_take_sparql_str (dest_file, sparql);
tracker_sparql_buffer_push (fs->priv->sparql_buffer,
task,
G_PRIORITY_DEFAULT,