You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by xiaojian zhou <zh...@gmail.com> on 2016/08/31 23:49:07 UTC

Review Request 51567: should save the reference of serverlocation in case it was destroyed by another thread

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51567/
-----------------------------------------------------------

Review request for geode and Dan Smith.


Bugs: GEODE-1833
    https://issues.apache.org/jira/browse/GEODE-1833


Repository: geode


Description
-------

The code called sender.getServerLocation() every time.

If we only check if it's null once, then we should save the reference, otherwise, we have to check the null after each call of sender.getServerLocation().


Diffs
-----

  geode-wan/src/main/java/com/gemstone/gemfire/internal/cache/wan/GatewaySenderEventRemoteDispatcher.java 2625ad2 

Diff: https://reviews.apache.org/r/51567/diff/


Testing
-------


Thanks,

xiaojian zhou


Re: Review Request 51567: should save the reference of serverlocation in case it was destroyed by another thread

Posted by Dan Smith <ds...@pivotal.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51567/#review147508
-----------------------------------------------------------


Ship it!




Ship It!

- Dan Smith


On Aug. 31, 2016, 11:49 p.m., xiaojian zhou wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51567/
> -----------------------------------------------------------
> 
> (Updated Aug. 31, 2016, 11:49 p.m.)
> 
> 
> Review request for geode and Dan Smith.
> 
> 
> Bugs: GEODE-1833
>     https://issues.apache.org/jira/browse/GEODE-1833
> 
> 
> Repository: geode
> 
> 
> Description
> -------
> 
> The code called sender.getServerLocation() every time.
> 
> If we only check if it's null once, then we should save the reference, otherwise, we have to check the null after each call of sender.getServerLocation().
> 
> 
> Diffs
> -----
> 
>   geode-wan/src/main/java/com/gemstone/gemfire/internal/cache/wan/GatewaySenderEventRemoteDispatcher.java 2625ad2 
> 
> Diff: https://reviews.apache.org/r/51567/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> xiaojian zhou
> 
>