[midPoint-git] [Evolveum/midpoint] e38e94: Relax freezing objects when R/O option is used

mederly noreply at github.com
Wed Mar 19 12:32:50 CET 2025


  Branch: refs/heads/feature/less-cloning-opt-repo-cache
  Home:   https://github.com/Evolveum/midpoint
  Commit: e38e948ca83bd6506979813b598debd0e276464a
      https://github.com/Evolveum/midpoint/commit/e38e948ca83bd6506979813b598debd0e276464a
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2025-03-19 (Wed, 19 Mar 2025)

  Changed paths:
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/evaluator/AbstractSearchExpressionEvaluator.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/evaluator/caching/AbstractSearchExpressionEvaluatorCache.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/evaluator/caching/AssociationSearchExpressionEvaluatorCache.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/evaluator/caching/QueryResult.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/functions/FunctionLibrary.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/stringpolicy/AbstractValuePolicyOriginResolver.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/ModelObjectResolver.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/RawChangesExecutor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/FullInboundsSource.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/loader/FocusLoadOperation.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/resources/ResourceExpansionOperation.java
    M repo/repo-cache/src/main/java/com/evolveum/midpoint/repo/cache/handlers/CacheUpdater.java
    M repo/repo-cache/src/main/java/com/evolveum/midpoint/repo/cache/handlers/CachedOpExecution.java
    M repo/repo-cache/src/main/java/com/evolveum/midpoint/repo/cache/handlers/GetObjectOpHandler.java
    M repo/repo-cache/src/test/java/com/evolveum/midpoint/repo/cache/TestRepositoryCache.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/SystemObjectCache.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/cluster/NodeRegistrar.java

  Log Message:
  -----------
  Relax freezing objects when R/O option is used

Recently, we've introduced a behavior that always froze objects being
returned from "get" and "search" repository operations if read-only
option is used.

This may be safer, but generally it is a waste of processing time.

This commit returns to the original semantics of the read-only option:
the repository cache may return either mutable or immutable version
of the object. (The latter case occurs if the object is being put or
is retrieved from the cache.)

Some extra "freeze" calls were added at places where the returned
objects are to be shared.



To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list