ThreadTracker + Attempt on NPC Disappearing fix
Engineered the ThreadTracker: server-embedded deadlock auditing tool, which will print error messages in case of found deadlocks (also showing all in-use locks on the time of the issue). Changed the player's id on DB now starting from 20mil, thus preventing players from overwriting NPC/mobs with same oid in-game. Requires proper testing to see if the issue has been cleared.
This commit is contained in:
@@ -36,12 +36,13 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import java.util.concurrent.locks.Lock;
|
||||
import java.util.concurrent.locks.ReentrantLock;
|
||||
import tools.locks.MonitoredReentrantLock;
|
||||
|
||||
import net.server.Server;
|
||||
import net.server.channel.Channel;
|
||||
import tools.DatabaseConnection;
|
||||
import tools.MaplePacketCreator;
|
||||
import tools.locks.MonitoredEnums;
|
||||
|
||||
public class MapleGuild {
|
||||
public final static int CREATE_GUILD_COST = 1500000;
|
||||
@@ -52,7 +53,7 @@ public class MapleGuild {
|
||||
}
|
||||
|
||||
private final List<MapleGuildCharacter> members;
|
||||
private final Lock membersLock = new ReentrantLock(true);
|
||||
private final Lock membersLock = new MonitoredReentrantLock(MonitoredEnums.GUILD, true);
|
||||
|
||||
private String rankTitles[] = new String[5]; // 1 = master, 2 = jr, 5 = lowest member
|
||||
private String name, notice;
|
||||
|
||||
Reference in New Issue
Block a user