projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
68a4abb
)
detach EasyDBI child session
Rafael Kitover [Tue, 1 Mar 2011 03:18:11 +0000 (22:18 -0500)]
lib/DBIx/Class/Storage/DBI/POE/EasyDBI.pm
patch
|
blob
|
blame
|
history
t/storage/poe_easydbi.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Storage/DBI/POE/EasyDBI.pm
b/lib/DBIx/Class/Storage/DBI/POE/EasyDBI.pm
index
895fb56
..
eb711c7
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBI/POE/EasyDBI.pm
+++ b/
lib/DBIx/Class/Storage/DBI/POE/EasyDBI.pm
@@
-101,6
+101,8
@@
sub _init {
options => $opts
);
+ $poe_kernel->detach_child($easydbi->ID);
+
$self->_easydbi($easydbi);
}
diff --git
a/t/storage/poe_easydbi.t
b/t/storage/poe_easydbi.t
index
f997cd8
..
4215252
100644
(file)
--- a/
t/storage/poe_easydbi.t
+++ b/
t/storage/poe_easydbi.t
@@
-49,11
+49,6
@@
POE::Session->create(
isnt $seq, '0,1,2,3,4,5', 'records were not inserted synchronously';
$_[HEAP]{creates_done_ran} = 1;
-
- $_[KERNEL]->yield('cleanup');
- },
- cleanup => sub {
- delete $_[HEAP]{schema}; # FIXME this should not be necessary
},
},
);