Fixed some wrong logic of getInterpreterInstanceKey

This commit is contained in:
Jongyoul Lee 2016-10-19 13:19:20 +09:00
parent cee39f40be
commit ad80951c5b

View file

@ -1144,11 +1144,10 @@ public class InterpreterFactory implements InterpreterGroupFactory {
String key;
if (option.isExistingProcess()) {
key = Constants.EXISTING_PROCESS;
} else if (!(shiroEnabled && option.perUserShared()) || !option.perNoteShared()) {
if (shiroEnabled) {
key = (!option.perUserShared() ? user : "") + ":" + (!option.perNoteShared() ? noteId : "");
} else {
key = (!option.perNoteShared() ? noteId : "");
} else if (!option.perNoteShared()) {
key = noteId;
if (shiroEnabled && !option.perUserShared()) {
key = user + ":" + key;
}
} else {
key = SHARED_SESSION;