Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T 1987 m #1071

Closed
wants to merge 2 commits into from
Closed

T 1987 m #1071

wants to merge 2 commits into from

Conversation

maniksurtani
Copy link
Member

https://issues.jboss.org/browse/ISPN-1987

And also t_1987_5 for branch 5.1.x

@@ -147,7 +148,7 @@ protected CacheEntry lookupEntryFromCurrentTransaction() {
// copy for write
AtomicHashMap<K, V> copy = map == null ? new AtomicHashMap<K, V>(true) : map.copy();
copy.initForWriting();
cache.put(deltaMapKey, copy);
cache.withFlags(Flag.SKIP_REMOTE_LOOKUP, Flag.SKIP_CACHE_LOAD).put(deltaMapKey, copy);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually for this to be at top efficiency you could execute
cache.withFlags(Flag.SKIP_REMOTE_LOOKUP, Flag.SKIP_CACHE_LOAD)
at Proxy initialization and store the return value in a final field for reause. I'm doing that with most Flag uses in the Lucene directory.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good points!

@danberindei
Copy link
Member

Manik, I missed Sanne's comments and I pushed your original version... I've rebased your commit on top of the original and I'm pushing it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants