The real workaround for txn_scope_guard being called twice
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Schema.pm
index 563f065..2743203 100644 (file)
@@ -1385,6 +1385,9 @@ sub _register_source {
 
 my $global_phase_destroy;
 sub DESTROY {
+  ### NO detect_reinvoked_destructor check
+  ### This code very much relies on being called multuple times
+
   return if $global_phase_destroy ||= in_global_destruction;
 
   my $self = shift;