diff --git a/src/storage/StorageState.cxx b/src/storage/StorageState.cxx index beeb4eebb..721a0ce37 100644 --- a/src/storage/StorageState.cxx +++ b/src/storage/StorageState.cxx @@ -35,7 +35,7 @@ #include "IOThread.hxx" #include "Log.hxx" -#include +#include #include #define MOUNT_STATE_BEGIN "mount_begin" @@ -118,16 +118,14 @@ storage_state_restore(const char *line, TextFile &file, Instance &instance) unsigned storage_state_get_hash(const Instance &instance) { - std::list mounts; + std::set mounts; const auto visitor = [&mounts](const char *mount_uri, const Storage &storage) { - mounts.push_back(std::string(mount_uri) + ":" + storage.MapUTF8("")); + mounts.emplace(std::string(mount_uri) + ":" + storage.MapUTF8("")); }; ((CompositeStorage*)instance.storage)->VisitMounts(visitor); - mounts.sort(); - boost::crc_32_type result; for (auto mount: mounts) {