if ( dest!=null && dest.length >0) {
getChannel().send(dest, msg, getChannelSendOptions());
}
+ if ( entry.getValue() != null && entry.getValue() instanceof ReplicatedMapEntry ) {
+ ReplicatedMapEntry val = (ReplicatedMapEntry)entry.getValue();
+ val.setOwner(getMapOwner());
+ }
}
entry.setPrimary(channel.getLocalMember(false));
entry.setBackupNodes(backup);
entry.setBackup(false);
entry.setProxy(false);
-
+ getMapOwner().objectMadePrimay(key, entry.getValue());
} catch (Exception x) {
log.error("Unable to replicate out data for a LazyReplicatedMap.get operation", x);
}
}
if (log.isTraceEnabled()) log.trace("Requesting id:"+key+" result:"+entry.getValue());
- if ( entry.getValue() != null && entry.getValue() instanceof ReplicatedMapEntry ) {
- ReplicatedMapEntry val = (ReplicatedMapEntry)entry.getValue();
- //hack, somehow this is not being set above
- val.setOwner(getMapOwner());
-
- }
return entry.getValue();
}
session before the current request has a chance to send the replication
message. (markt)
</fix>
+ <fix>
+ <bug>49924</bug>: When non-primary node changes into a primary node,
+ make sure isPrimarySession is changed to true. (kfujino)
+ </fix>
</changelog>
</subsection>
<subsection name="Web applications">