Commit 1cc4914b authored by Max Kellermann's avatar Max Kellermann

update: renamed directory_update_init() to update_enqueue()

parent aec18c74
...@@ -1025,7 +1025,7 @@ handle_update(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) ...@@ -1025,7 +1025,7 @@ handle_update(struct client *client, G_GNUC_UNUSED int argc, char *argv[])
if (argc == 2) if (argc == 2)
path = g_strdup(argv[1]); path = g_strdup(argv[1]);
ret = directory_update_init(path); ret = update_enqueue(path);
if (ret > 0) { if (ret > 0) {
client_printf(client, "updating_db: %i\n", ret); client_printf(client, "updating_db: %i\n", ret);
return COMMAND_RETURN_OK; return COMMAND_RETURN_OK;
......
...@@ -350,7 +350,7 @@ int main(int argc, char *argv[]) ...@@ -350,7 +350,7 @@ int main(int argc, char *argv[])
if (create_db) { if (create_db) {
/* the database failed to load: recreate the /* the database failed to load: recreate the
database */ database */
unsigned job = directory_update_init(NULL); unsigned job = update_enqueue(NULL);
if (job == 0) if (job == 0)
g_error("directory update failed"); g_error("directory update failed");
} }
......
...@@ -806,7 +806,7 @@ static void spawn_update_task(char *path) ...@@ -806,7 +806,7 @@ static void spawn_update_task(char *path)
} }
unsigned unsigned
directory_update_init(char *path) update_enqueue(char *path)
{ {
assert(g_thread_self() == main_task); assert(g_thread_self() == main_task);
......
...@@ -33,6 +33,6 @@ isUpdatingDB(void); ...@@ -33,6 +33,6 @@ isUpdatingDB(void);
* @path will be freed by this function and should not be reused * @path will be freed by this function and should not be reused
*/ */
unsigned unsigned
directory_update_init(char *path); update_enqueue(char *path);
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment