firepit - meat added 2x

Forum for general requests for support for players. Both staff members and veteran players can help new players with problems they encounter. No chatting in this forum, please.

Moderators: Public Relations Department, Players Department, Programming Department

User avatar
marol
Posts: 3728
Joined: Sun Jul 17, 2005 11:45 am
Location: Kraków, PL
Contact:

Postby marol » Wed Aug 09, 2006 4:57 am

Sem - well, in fact we have switched to higher version of MySQL recently and the transactions are now supported, but still Cantr code was not rewritten to use them.

Transactions however could lead to other problems (performance, deadlocks etc.) and since those things like above are not a real issue (they don't occur too often) and no time to do that, we leave it as it is.

But of course if it will become necessary, we will rewrite some important parts to use it.

And your first solution:
1. Player A script acquires lock on project
2. Player A script checks if there's room for 150 meat in the project
3. Player B script waits on lock
(...)
Yea, but 1 splits into:
1a. Check if there's a lock already.
1b. Set lock flag (if not already locked).
So two processes could move through 1a and we have the problem again.

Return to “General Support”

Who is online

Users browsing this forum: No registered users and 1 guest