Page 1 of 1

problem with cards ON SALE

Posted: Tue Dec 25, 2012 10:23 pm
by fisilva1
Hi:

I need some help from the administrators of GCCG... when I try to buy some cards, the whole system falls appart, specially with some "infected" accounts. The cards seems to be no longer on sale, but the systems fails to notice it, and crumble....

It's possible to clean the file with the cards on sale (just delete all of them)??
then, the active users could put again the real cards on sale, and fix the problem.


PLEAS HELP :)

Felipe, from Santiago, Chile

Re: problem with cards ON SALE

Posted: Wed Dec 26, 2012 9:03 am
by emux
Yes, thats the most easy way to fix that problem. Deleting the "prices" file from server would help on preventing server crashes.

Re: problem with cards ON SALE

Posted: Wed Dec 26, 2012 9:32 am
by anonycat
This looks interesting. Surely it's worth a try:

Code: Select all

#
# RemoveObsoletePrices() - Helper function to be called once after
#   transition from older server to the caching server. Using God
#    account, this can be done by issuing /debug RemoveObsoletePrices().
#
def RemoveObsoletePrices
{
  for(s)(set.data)
  {
    Reply("Removing obsolete prices from "+s[1][0]+"...");
    Reply("Found "+remove_obsolete_prices(seq(s[1][1],s[1][2]))+" entries.");
  }
  return("done");
}

Re: problem with cards ON SALE

Posted: Wed Dec 26, 2012 12:08 pm
by emux
Marcos tried that function using user "god" some weeks ago but the server crashed too. :-(
anonycat wrote:This looks interesting. Surely it's worth a try:

Code: Select all

#
# RemoveObsoletePrices() - Helper function to be called once after
#   transition from older server to the caching server. Using God
#    account, this can be done by issuing /debug RemoveObsoletePrices().
#
def RemoveObsoletePrices
{
  for(s)(set.data)
  {
    Reply("Removing obsolete prices from "+s[1][0]+"...");
    Reply("Found "+remove_obsolete_prices(seq(s[1][1],s[1][2]))+" entries.");
  }
  return("done");
}