[rhythmbox] rhythmdb: set 'removed' flag in rhythmdb_entry_delete_by_type



commit e64f83ac8b1c38d0b66635271d605b59813f2391
Author: Jonathan Matthew <jonathan d14n org>
Date:   Thu Feb 9 21:52:57 2012 +1000

    rhythmdb: set 'removed' flag in rhythmdb_entry_delete_by_type
    
    This ensures that future entry changes are ignored, which prevents
    the rhythmdb hash table tree from getting messed up.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=454247 probably

 rhythmdb/rhythmdb-tree.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/rhythmdb/rhythmdb-tree.c b/rhythmdb/rhythmdb-tree.c
index 4368550..dfd349a 100644
--- a/rhythmdb/rhythmdb-tree.c
+++ b/rhythmdb/rhythmdb-tree.c
@@ -1728,6 +1728,7 @@ remove_one_song (gpointer key,
 		g_mutex_unlock (db->priv->keywords_lock);
 		remove_entry_from_album (db, entry);
 		g_hash_table_remove (db->priv->entry_ids, GINT_TO_POINTER (entry->id));
+		entry->flags |= RHYTHMDB_ENTRY_TREE_REMOVED;
 		rhythmdb_entry_unref (entry);
 		return TRUE;
 	}



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