From c29a4c0f703c705241982ddfff18c2e8ffb907a9 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 24 Nov 2015 12:18:16 -0500 Subject: [PATCH 1/1] LP#1468422 Remove deprecated open-ils.storage remote_update User update in Actor.pm was the only remaining code that leveraged the open-ils.storage remote_update API. With that code moving to open-ils.cstore, save some RAM by no longer auto-loading/publishing remote_update methods. Signed-off-by: Bill Erickson Signed-off-by: Dan Wells --- .../OpenILS/Application/Storage/Publisher.pm | 42 ------------------- 1 file changed, 42 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher.pm index a10d1d3f00..db78f30a73 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher.pm @@ -332,25 +332,6 @@ sub mass_delete { return $success; } -sub remote_update_node { - my $self = shift; - my $client = shift; - my $keys = shift; - my $vals = shift; - - local $OpenILS::Application::Storage::WRITE = 1; - - my $cdbi = $self->{cdbi}; - - my $success = 1; - try { - $success = $cdbi->remote_update($keys,$vals); - } catch Error with { - $success = 0; - }; - return $success; -} - sub merge_node { my $self = shift; my $client = shift; @@ -718,29 +699,6 @@ for my $fmclass ( (Fieldmapper->classes) ) { ); } - # Create the remote_update method - unless ( __PACKAGE__->is_registered( $api_prefix.'.remote_update' ) ) { - __PACKAGE__->register_method( - api_name => $api_prefix.'.remote_update', - method => 'remote_update_node', - api_level => 1, - cdbi => $cdbi, - argc => 1, - ); - } - - # Create the batch remote_update method - unless ( __PACKAGE__->is_registered( $api_prefix.'.batch.remote_update' ) ) { - __PACKAGE__->register_method( - api_name => $api_prefix.'.batch.remote_update', - method => 'batch_call', - api_level => 1, - unwrap => 1, - cdbi => $cdbi, - argc => 1, - ); - } - # Create the search-based mass delete method unless ( __PACKAGE__->is_registered( $api_prefix.'.mass_delete' ) ) { __PACKAGE__->register_method( -- 2.43.2