[Bps-public-commit] Prophet branch, master, updated. 23ffeacb1edc563a00cd781503e24048d2c1b51e

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Aug 18 00:50:41 EDT 2009


The branch, master has been updated
       via  23ffeacb1edc563a00cd781503e24048d2c1b51e (commit)
      from  2672d8343ea2799f6394dda3f34d0a487d91dcf9 (commit)

Summary of changes:
 lib/Prophet/Replica/prophet.pm |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
 mode change 100644 => 100755 lib/Prophet/Replica/prophet.pm

- Log -----------------------------------------------------------------
commit 23ffeacb1edc563a00cd781503e24048d2c1b51e
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Aug 18 12:50:34 2009 +0800

    memoize does *not* work on win :/

diff --git a/lib/Prophet/Replica/prophet.pm b/lib/Prophet/Replica/prophet.pm
old mode 100644
new mode 100755
index db427fb..7228b68
--- a/lib/Prophet/Replica/prophet.pm
+++ b/lib/Prophet/Replica/prophet.pm
@@ -567,7 +567,12 @@ sub _read_serialized_record {
     return from_json( $self->_read_file($casfile), { utf8 => 1 } );
 }
 
-memoize '_record_index_filename';
+# XXX TODO: memoize doesn't work on win:
+# t\resty-server will issue the following error:
+# Anonymous function called in forbidden list context; faulting
+memoize '_record_index_filename' unless $^O =~ /MSWin/;
+
+
 sub _record_index_filename {
     my $self = shift;
     my %args = validate( @_, { uuid => 1, type => 1 } );

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list