Update Server - keeps trying to update NPCs
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Update Server - keeps trying to update NPCs
I've seen a few new SQLs try to get altered on my server the last few days, but each time I start the world, this ALTER fails (last one was adding initial_state). Now, the Update server tells me I have used my alotted connections.
I'll reset my version info for NPCs, but I already seem to have those alterations. Not sure why it continues to try.
I'll reset my version info for NPCs, but I already seem to have those alterations. Not sure why it continues to try.
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Yesterday the column trying to be updated was `action_state` I believe, which I had already gotten last week. The server was starting fine repeatedly during our tests yesterday. Today's restart now is complaining about a column that definitely was not there yesterday (initial_state), but is now there and continues to try to ALTER the NPCs table.
What version should npcs be? Mine is 9, with 1 download now.
What version should npcs be? Mine is 9, with 1 download now.
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Do you have activity_status in your table? update 10 for NPCs included both these updates:
ALTER TABLE `npcs` ADD `initial_state` SMALLINT UNSIGNED DEFAULT '0' NOT NULL;
ALTER TABLE `npcs` ADD `activity_status` SMALLINT UNSIGNED DEFAULT '0' NOT NULL;
If one update failed then the whole update failed but the first update wouldnt have been rolled back, which might have caused your problem.
ALTER TABLE `npcs` ADD `initial_state` SMALLINT UNSIGNED DEFAULT '0' NOT NULL;
ALTER TABLE `npcs` ADD `activity_status` SMALLINT UNSIGNED DEFAULT '0' NOT NULL;
If one update failed then the whole update failed but the first update wouldnt have been rolled back, which might have caused your problem.
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Hmm, I was reading up on ALTER IGNORE, but I am not sure that will solve your problem since you're doing individual ALTERs.
What if you combine your ALTER into a single statement, so if one part failed, the whole transaction would fail?
In a test I just ran, if either of those two fields were present during the ALTER, the whole query failed. If both were missing, the query completes.
Naturally, this will not help if you have multiple tables all being updated in the same update rev... but maybe you can work that out with versioning.
What if you combine your ALTER into a single statement, so if one part failed, the whole transaction would fail?
Code: Select all
ALTER TABLE `npcs`
ADD `initial_state` SMALLINT UNSIGNED DEFAULT '0' NOT NULL,
ADD `activity_status` SMALLINT UNSIGNED DEFAULT '0' NOT NULL;Naturally, this will not help if you have multiple tables all being updated in the same update rev... but maybe you can work that out with versioning.
- ZexisStryfe
- Posts: 1026
- Joined: Thu Jul 26, 2007 6:39 am
- EQ2Emu Server: Sytherian Legends
- Location: Connecticut
- Contact:
Who is online
Users browsing this forum: No registered users and 0 guests


