Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7f6a0326
authored
Dec 14, 2014
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIx queue
1 parent
a043f778
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/beans/QueueBean.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/QueueBean.java
View file @
7f6a032
...
...
@@ -149,14 +149,12 @@ public class QueueBean implements QueueBeanLocal {
ret
=
new
MapReservationQueueEntry
();
queEntries
.
put
(
user
,
ret
);
if
(
reserving
.
size
()
<
reservingSize
)
{
checkReservingEntry
();
logger
.
info
(
"User {} not in queue and reserving smaller than size Entering directly: Success: {}"
,
user
);
}
else
{
boolean
queStat
=
queue
.
offer
(
user
);
logger
.
info
(
"User {} not in queue, offer state {}"
,
user
,
queStat
);
}
boolean
queStat
=
queue
.
offer
(
user
);
logger
.
info
(
"User {} not in queue, offer state {}"
,
user
,
queStat
);
// Check if the user can be put to reservation queue immediately
checkReservingEntry
();
}
else
{
ret
=
queEntries
.
get
(
user
);
logger
.
info
(
"User {} already in queue. Not entering again {}"
,
user
,
ret
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment