Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
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 {
...
@@ -149,14 +149,12 @@ public class QueueBean implements QueueBeanLocal {
ret
=
new
MapReservationQueueEntry
();
ret
=
new
MapReservationQueueEntry
();
queEntries
.
put
(
user
,
ret
);
queEntries
.
put
(
user
,
ret
);
if
(
reserving
.
size
()
<
reservingSize
)
{
boolean
queStat
=
queue
.
offer
(
user
);
checkReservingEntry
();
logger
.
info
(
"User {} not in queue, offer state {}"
,
user
,
queStat
);
logger
.
info
(
"User {} not in queue and reserving smaller than size Entering directly: Success: {}"
,
user
);
// Check if the user can be put to reservation queue immediately
}
else
{
checkReservingEntry
();
boolean
queStat
=
queue
.
offer
(
user
);
logger
.
info
(
"User {} not in queue, offer state {}"
,
user
,
queStat
);
}
}
else
{
}
else
{
ret
=
queEntries
.
get
(
user
);
ret
=
queEntries
.
get
(
user
);
logger
.
info
(
"User {} already in queue. Not entering again {}"
,
user
,
ret
);
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