Changeset 565
- Timestamp:
- 02/25/09 19:33:25 (9 months ago)
- Files:
-
- 1 modified
-
trunk/lib/Data/ObjectDriver/Driver/GearmanDBI.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Data/ObjectDriver/Driver/GearmanDBI.pm
r559 r565 9 9 use Data::Dumper; 10 10 11 __PACKAGE__->mk_accessors(qw( dbi client func driver_arg enabled_cb uniqify_cb )); 11 __PACKAGE__->mk_accessors(qw( 12 dbi client func driver_arg enabled_cb uniqify_cb 13 on_exception_cb retry_count 14 )); 12 15 13 16 sub init { … … 67 70 my $client = $driver->client; 68 71 72 my %options = (); 73 $options{on_exception} = $driver->on_exception_cb 74 if $driver->on_exception_cb; 75 $options{retry_count} = $driver->retry_count 76 if $driver->retry_count; 77 69 78 my $res = $client->do_task( $func => 70 79 \Storable::nfreeze( { … … 75 84 } ), 76 85 { 77 uniq => $uniq # coalesce all requests for this data 86 uniq => $uniq, # coalesce all requests for this data 87 %options, 78 88 } 79 89 );
