Bugzilla – Attachment 50322 Details for
Bug 16221
Use Storable::dclone() instead of Clone::clone() for L1 cache deep-copying mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16221: follow-up for changes made by bug 16229
Bug-16221-follow-up-for-changes-made-by-bug-16229.patch (text/plain), 1.18 KB, created by
Jacek Ablewicz
on 2016-04-18 10:41:43 UTC
(
hide
)
Description:
Bug 16221: follow-up for changes made by bug 16229
Filename:
MIME Type:
Creator:
Jacek Ablewicz
Created:
2016-04-18 10:41:43 UTC
Size:
1.18 KB
patch
obsolete
>From ffc957b6bc59948ab80b902394a5e852bdffe0e5 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 8 Apr 2016 13:37:46 +0100 >Subject: [PATCH] Bug 16221: follow-up for changes made by bug 16229 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar> >--- > Koha/Cache.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Cache.pm b/Koha/Cache.pm >index 3d996d8..9a1d3e5 100644 >--- a/Koha/Cache.pm >+++ b/Koha/Cache.pm >@@ -283,7 +283,7 @@ sub set_in_cache { > my $set_sub = $self->{ref($self->{$cache}) . "_set"}; > > # Deep copy if it's not a scalar and unsafe is not passed >- $value = clone( $value ) if ref($value) and not $unsafe; >+ $value = dclone( $value ) if ref($value) and not $unsafe; > > # Set in L1 cache > $L1_cache{ $key } = $value; >@@ -352,7 +352,7 @@ sub get_from_cache { > # Otherwise the L1 cache won't ever be populated > $L1_cache{$key} = $value; > >- $value = clone $value if ref $L1_cache{$key} and not $unsafe; >+ $value = dclone $value if ref $L1_cache{$key} and not $unsafe; > > return $value; > } >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16221
:
50011
|
50077
|
50280
|
50281
|
50288
|
50289
|
50321
| 50322