28.05.2018 15:57, Dimitry Sibiryakov wrote:
28.05.2018 14:13, Vlad Khorsun via Firebird-devel wrote:
- forcebly rollback active transactions and reset connection
   same as if connection was broken
- raise error and don't reset connection.

   Obviously, first case is not an option and we must choose between second and 
third.
So far i prefer to raise error and don't reset.

  On one hand third option would be consistent with behavior of isc_detach_database() on client. On the other hand server cannot handle such error and it will result in endless transaction with all consequences.

  Not sure i understand you, explain please.

  I personally hate current isc_detach_database() behavior because there is no sane way to handle the error by code, so I would vote for the second option: rollback transaction (and may be issue/log a warning).

  What is sane way, for you ? Do you aware of 
fb_cancel_operation(fb_cancel_abort) ?

Regards,
Vlad

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to