subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1671315 - /subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.c
Date Sat, 04 Apr 2015 20:41:35 GMT
Author: stefan2
Date: Sat Apr  4 20:41:35 2015
New Revision: 1671315

URL: http://svn.apache.org/r1671315
Log:
On the fsx-1.10 branch:
Simplify some FSX caching code.

* subversion/libsvn_fs_x/temp_serializer.c
  (svn_fs_x__serialize_rep_header,
   svn_fs_x__deserialize_rep_header): Because svn_fs_x__rep_header_t
                                      contains no pointers,
                                      (de-)serialization is a no-op.

Modified:
    subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.c

Modified: subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.c?rev=1671315&r1=1671314&r2=1671315&view=diff
==============================================================================
--- subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.c (original)
+++ subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.c Sat Apr  4 20:41:35
2015
@@ -1042,11 +1042,8 @@ svn_fs_x__serialize_rep_header(void **da
                                void *in,
                                apr_pool_t *pool)
 {
-  svn_fs_x__rep_header_t *copy = apr_palloc(pool, sizeof(*copy));
-  *copy = *(svn_fs_x__rep_header_t *)in;
-
   *data_len = sizeof(svn_fs_x__rep_header_t);
-  *data = copy;
+  *data = in;
 
   return SVN_NO_ERROR;
 }
@@ -1057,10 +1054,6 @@ svn_fs_x__deserialize_rep_header(void **
                                  apr_size_t data_len,
                                  apr_pool_t *result_pool)
 {
-  svn_fs_x__rep_header_t *copy = apr_palloc(result_pool, sizeof(*copy));
-  SVN_ERR_ASSERT(data_len == sizeof(*copy));
-
-  *copy = *(svn_fs_x__rep_header_t *)data;
   *out = data;
 
   return SVN_NO_ERROR;



Mime
View raw message