home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / informix / 2375 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.6 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!att-out!rutgers!rochester!rit!isc-newsserver!ritvax.isc.rit.edu!HWC2243
  2. From: hwc2243@ritvax.isc.rit.edu
  3. Newsgroups: comp.databases.informix
  4. Subject: tracking execution
  5. Message-ID: <1992Nov11.025039.19882@ultb.isc.rit.edu>
  6. Date: 11 Nov 92 02:50:39 GMT
  7. Sender: news@ultb.isc.rit.edu (USENET News System)
  8. Reply-To: hwc2243@ritvax.isc.rit.edu
  9. Organization: Rochester Institute of Technology
  10. Lines: 30
  11. Nntp-Posting-Host: vaxa.isc.rit.edu
  12.  
  13. A company I have been working is having a problem with deadlocks.  We 
  14. handled this by checking the status variable after executing any critical
  15. transactions.  If there is a deadlock status returned we call a routine
  16. to handle this, which does a rollback.  This works fine except we would
  17. like to know what statement caused it and where in the code it is.
  18.  
  19. So basically what we would like to know is if there any globals variables
  20. or something to return the same information you get when there is an 
  21. actual error, ie. the module and line number.
  22.  
  23. I know we could hardcode them into all the calls but there alot of them
  24. and they would also have to be changed whenever we change code.
  25.  
  26. We are currently running OnLine 4.0, I4GL 4.0 on Intergraph equipment.
  27.  
  28. Our current call looks like the following :
  29.  
  30.      SOME CRITICAL DATABASE TRANSACTION
  31.      IF status < 0 THEN
  32.          CALL handle_warning(status)
  33.      END IF
  34.  
  35. handle_warning then insert the status into a table and send E-mail to the
  36. programming group that a deadlock happened and restarts the program for the 
  37. user.
  38.  
  39. Any help on how to determine where the program is executing would be 
  40. appreciated.
  41.  
  42.                         Bill Connors
  43.