From: Andre Noll Date: Sun, 11 May 2025 20:07:27 +0000 (+0200) Subject: Speed up blob operations. X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=a0e73468a2a2ea0ed43302abe6f57e865d07294c;p=paraslash.git Speed up blob operations. The current status items are unaffected by any blob operations, so this code is completely unnecessary. --- diff --git a/aft.c b/aft.c index dd99a31e..80cd3927 100644 --- a/aft.c +++ b/aft.c @@ -2703,23 +2703,6 @@ static int aft_event_handler(enum afs_events event, struct para_buffer *pb, if (data == current_aft_row) current_aft_row = NULL; return 0; - } - case BLOB_RENAME: - case BLOB_REMOVE: - case BLOB_ADD: { - /* - * These events are rare. We don't bother to check whether the - * current status items are affected and simply recreate them - * whenever an audio file is open. - */ - if (!current_aft_row) - return 0; - ret = get_afhi_of_row(current_aft_row, - &status_item_ls_data.afhi); - if (ret < 0) - return ret; - make_status_items(); - return 0; } default: return 0; }