2008-04-02 23:49:02 glasser_at_tigris.org napisaĆ(a):
> Author: glasser
> Date: Wed Apr 2 14:49:01 2008
> New Revision: 30199
>
> Log:
> On the in-memory-cache branch:
>
> Move cache code to its own file. Initialize caches *after*
> opening/creating/whatever the FS, so that we have access to UUID.
> Temporarily hardcode the rev root ID cache to use memcache.
>
> * subversion/libsvn_fs_fs/caching.c
> New (mostly moved from fs.c).
> (serialize_id, deserialize_id): New.
> (svn_fs_fs__initialize_caches): Extract from initialize_fs_struct.
> Use memcache for one cache.
>
> * subversion/libsvn_fs_fs/fs.c
> Move lots of stuff to caching.c.
> (fs_create, fs_open, fs_upgrade): Call svn_fs_fs__initialize_caches.
>
> * subversion/libsvn_fs_fs/fs_fs.h
> (svn_fs_fs__initialize_caches): New.
>
> Added:
> branches/in-memory-cache/subversion/libsvn_fs_fs/caching.c
> Modified:
> branches/in-memory-cache/subversion/libsvn_fs_fs/fs.c
> branches/in-memory-cache/subversion/libsvn_fs_fs/fs_fs.h
>
> Added: branches/in-memory-cache/subversion/libsvn_fs_fs/caching.c
> URL: http://svn.collab.net/viewvc/svn/branches/in-memory-cache/subversion/libsvn_fs_fs/caching.c?pathrev=30199
> ==============================================================================
> --- /dev/null 00:00:00 1970 (empty, because file is newly added)
> +++ branches/in-memory-cache/subversion/libsvn_fs_fs/caching.c Wed Apr 2 14:49:01 2008 (r30199)
> @@ -0,0 +1,147 @@
> +/* caching.c : in-memory caching
> + *
> + * ====================================================================
> + * Copyright (c) 2000-2004 CollabNet. All rights reserved.
Copyright years probably should be changed to "2008".
--
Arfrever Frehtes Taifersar Arahesis
Received on 2008-04-05 01:00:28 CEST