Darrel Schneider created GEODE-6762:
---------------------------------------
Summary: BucketRegion ops do not always need to call
createEventForPR
Key: GEODE-6762
URL: https://issues.apache.org/jira/browse/GEODE-6762
Project: Geode
Issue Type: Improvement
Components: core
Reporter: Darrel Schneider
The BucketRegion class has multiple places in the after op event delivery code
that call createEventForPR and then ask that callbacks be invoked for that
event on the partitioned region.
But we will only have callbacks to invoke if we are a cache server that has
clients registered for events or the partitioned region has a cache listener,
We could prevent this optimization by doing some cheap checks to see if any
callbacks are possible before calling createEventForPR.
Some code that does this for BucketRegion put can be found here:
f7a824c62a57a5039b816a4a8b8b4d8c1c1fcb86 and here:
f568960235bda994bd7c6d0c575567ed2ccb10a5
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)