rmblob: Generate proper BLOB_REMOVE_EVENT.
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 4 Sep 2015 07:24:12 +0000 (09:24 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 4 Sep 2015 07:24:12 +0000 (09:24 +0200)
commit05e3b9416f4d08b49c3a18dce78e2e9235f94e7c
tree1df3b77c00862acfec038733bc186a71b240d1ca
parent70f1a837efe7307b4162a63b470599100f9c4703
rmblob: Generate proper BLOB_REMOVE_EVENT.

com_rmblob_callback() of blob.c is responsible for removing blobs from
any of the four blob tables (images, lyrics, moods, playlists). After
a blob has been removed, the function generates an AFS event to tell
the other tables about the removal.

However, the call to afs_event() passes the event identifier
BLOB_RENAME rather than BLOB_REMOVE to the event handlers, which is
clearly incorrect. Fortunately, this does not matter because the only
event handler which cares about blob events is the one in mood.c,
and this handler treats the two events identically. Nevertheless,
it's is a bug that should be fixed.

This bug was introduced eight years ago when event handling was
introduced: commit 02d818d9 (Complete afs event handling).
blob.c