From 4b9e47dbf9f9869c49fa789db20736db99fb6317 Mon Sep 17 00:00:00 2001 From: Vaclav Blazek Date: Thu, 5 Sep 2019 15:37:15 +0200 Subject: [PATCH] resources: updating when local resource registry changes (no version bump) --- mapproxy/src/mapproxy/resource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapproxy/src/mapproxy/resource.cpp b/mapproxy/src/mapproxy/resource.cpp index df5e8c0..7ba1a9d 100644 --- a/mapproxy/src/mapproxy/resource.cpp +++ b/mapproxy/src/mapproxy/resource.cpp @@ -532,8 +532,6 @@ Changed Resource::changed(const Resource &o) const return Changed::yes; } - // TODO: registry ? - // check definition, it must check mandatory stuff first, save stuff // second auto def(definition_->changed(*o.definition())); @@ -543,6 +541,8 @@ Changed Resource::changed(const Resource &o) const if (changedCredits) { return Changed::safely; } + if (registry != o.registry) { return Changed::safely; } + // not changed at all return Changed::no; }