darin%netscape.com
6ba0fd6047
Fixes bug 73042. Make new disk cache recover well from a corrupted disk
...
entry. patch=beard; sr=darin
git-svn-id: svn://10.0.0.236/trunk@90192 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:44:55 +00:00
darin%netscape.com
1555f0a44b
Fixes bug 38260. Use big endian in disk cache. r=beard,pavlov; sr=dougt
...
git-svn-id: svn://10.0.0.236/trunk@90191 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 03:35:10 +00:00
pinkerton%netscape.com
d1fb9e2395
fix fizzilla bustage.
...
git-svn-id: svn://10.0.0.236/trunk@90171 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 02:52:13 +00:00
darin%netscape.com
d0a01665d5
Remove stupid printfs. r=pavlov, sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@90098 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-22 08:34:34 +00:00
gordon%netscape.com
7b8581452d
Landing MOZ_NEW_CACHE_20010314_BRANCH, incorporating feedback from recent test builds. New cache is still disabled by default.
...
git-svn-id: svn://10.0.0.236/trunk@89933 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-20 22:42:03 +00:00
beard%netscape.com
d9080d0633
[not part of build] Fix dumb assertion.
...
git-svn-id: svn://10.0.0.236/trunk@89654 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 21:16:55 +00:00
darin%netscape.com
db46fd8e9e
[not part of the build] Changes to make the new cache use PRUint32's for
...
time instead of PRTime's. r=gordon
git-svn-id: svn://10.0.0.236/trunk@89597 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 03:54:05 +00:00
beard%netscape.com
702eda7e46
[not part of build] Using nsIPref::AddObserver() instead of krufty old callbacks. Using directory service to obtain profile directory and using a "profile-do-change" observer to regenerate the cache directory.
...
git-svn-id: svn://10.0.0.236/trunk@89595 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 03:35:09 +00:00
darin%netscape.com
ed9b1f24cd
[not part of the build] Make nsICacheEntryDescriptor inherit from nsICacheEntryInfo
...
git-svn-id: svn://10.0.0.236/trunk@89561 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-14 01:11:14 +00:00
beard%netscape.com
9b6e351229
[not part of build] Implements poor man's eviction policy.
...
git-svn-id: svn://10.0.0.236/trunk@89446 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 04:54:14 +00:00
beard%netscape.com
861b55468f
[not part of build] scan disk cache directory during initialization, to total cache usage, and implement poor man's eviction policy (once at startup/shutdown).
...
git-svn-id: svn://10.0.0.236/trunk@89351 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 19:31:21 +00:00
darin%netscape.com
6d9fdf255f
[not part of the build] Replaced -1's in calls to Open{In,Out}putStream with ULONG_MAX.
...
git-svn-id: svn://10.0.0.236/trunk@89325 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-12 06:25:26 +00:00
beard%netscape.com
311a9f92d6
[not part of build] Turned off some benign failure assertions.
...
git-svn-id: svn://10.0.0.236/trunk@89296 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 19:26:04 +00:00
beard%netscape.com
86bb9e5a02
[not part of build] Update visitEntries to correctly identify metadata files.
...
git-svn-id: svn://10.0.0.236/trunk@89295 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 19:18:48 +00:00
beard%netscape.com
957b461b8d
[not part of build] Fix incorrect usage of PR_APPEND_LINK() to keep from corrupting the list of doomed DiskCacheEntry object. (thanks gordon)
...
git-svn-id: svn://10.0.0.236/trunk@89268 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 06:51:53 +00:00
beard%netscape.com
eee8a212e4
[not part of build] Stopped reusing nsITransports, seems to improve stability. Implemented collision detection of cache entries, using generations and renaming upon entry deactivation.
...
git-svn-id: svn://10.0.0.236/trunk@89257 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-11 00:19:09 +00:00
beard%netscape.com
06a9d85e0d
[not part of build] Implemented more of cache visitor support.
...
git-svn-id: svn://10.0.0.236/trunk@89141 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 19:01:15 +00:00
beard%netscape.com
0a3b477585
[not part of build] Fix cache directory creation logic again.
...
git-svn-id: svn://10.0.0.236/trunk@89138 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 17:14:02 +00:00
beard%netscape.com
6b6ad31fa3
[not part of build] Initial implementation of cache visitor support.
...
git-svn-id: svn://10.0.0.236/trunk@89017 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 00:04:03 +00:00
beard%netscape.com
1c5610f321
[not part of build] Implemented nsCacheEntryDescriptor::GetFile().
...
git-svn-id: svn://10.0.0.236/trunk@88984 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 21:22:18 +00:00
beard%netscape.com
b5ecde3753
[not part of build] stub implementation of Visit().
...
Changed Cache directory creation logic in nsDiskCacheDevice.cpp.
git-svn-id: svn://10.0.0.236/trunk@88983 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 21:00:02 +00:00
gordon%netscape.com
95787ca5fb
[not part of build]
...
Removed return codes for nsCacheEntryHashtable::RemoveEntry() and nsCacheDevice::DoomEntry().
Added doomEntriesIfExpired flag to nsCacheSession and nsCacheRequest, and check the flag in nsCacheService::ActivateEntry()
Added lastModified attribute to nsCacheEntryDescriptor and mLastModified data member to nsCacheEntry. mLastModified is updated when data or meta data is changed.
Deque requests if descriptor allocation fails. Delete requests after calling proxy in async open cache entry path.
Cleaned up the logic of doom.
git-svn-id: svn://10.0.0.236/trunk@88929 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 05:37:00 +00:00
beard%netscape.com
53d0cb5b89
[not part of build] when DEBUG is true, always put cache directory next to current process.
...
git-svn-id: svn://10.0.0.236/trunk@88853 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 00:35:03 +00:00
beard%netscape.com
570f5ff2a8
[not part of build] create the cache directory if it doesn't exist already.
...
git-svn-id: svn://10.0.0.236/trunk@88609 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 02:10:18 +00:00
beard%netscape.com
357055f247
[not part of build] fix bustage (LL_ZERO is not compatible with PRUint32 type).
...
git-svn-id: svn://10.0.0.236/trunk@88507 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-04 19:27:39 +00:00
gordon%netscape.com
3631c00985
[not part of build] Changed nsCacheEntry data members from PRTime to PRUint32. Changed //** comments to // XXX to make it easier to search for 'to do' items. Added dooming of expired entries.
...
git-svn-id: svn://10.0.0.236/trunk@88499 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-04 00:11:30 +00:00
beard%netscape.com
c433468142
[not part of build] dooming works during forced write, and explicitly, see TestDiskCache.js for example.
...
git-svn-id: svn://10.0.0.236/trunk@88470 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 03:41:38 +00:00
beard%netscape.com
b056176026
[not part of build] removed dirty flag from DiskCacheEntry, added key comparision to readDiskCacheEntry().
...
git-svn-id: svn://10.0.0.236/trunk@88425 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-03 00:35:33 +00:00
beard%netscape.com
1684c3dc88
[not part of build] slight optimization, check for cache file existence before creating an entry and attempting to open a transport for it.
...
git-svn-id: svn://10.0.0.236/trunk@88408 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 20:14:41 +00:00
beard%netscape.com
1c6cccf159
Now reading/writing all metadata into disk cache.
...
git-svn-id: svn://10.0.0.236/trunk@88384 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 04:57:09 +00:00
beard%netscape.com
78e0e5edf9
[not part of build] Forgot NS_INIT_ISUPPORTS() in DiskCacheEntry constructor.
...
git-svn-id: svn://10.0.0.236/trunk@88305 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 19:32:41 +00:00
beard%netscape.com
8751f25fe1
[not part of build] Use NS_IMPL_THREADSAFE_ISUPPORTS0 to avoid thread-safety asserts in DiskCacheEntry.
...
git-svn-id: svn://10.0.0.236/trunk@88300 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 17:48:36 +00:00
beard%netscape.com
cfd2ba927c
[not part of build] Added DiskCacheEntry to store internal data in nsCacheEntry. Now saving metadata when DiskCacheEntry becomes dirty.
...
git-svn-id: svn://10.0.0.236/trunk@88299 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 17:31:06 +00:00
beard%netscape.com
4bdd006d95
[not part of build] Fix LL bustage.
...
git-svn-id: svn://10.0.0.236/trunk@88291 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 08:38:50 +00:00
beard%netscape.com
8c8ca7ce95
[not part of build] First cut at wrapper nsIOutputStream for tallying total bytes written to a cache entry.
...
git-svn-id: svn://10.0.0.236/trunk@88290 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 08:29:43 +00:00
gordon%netscape.com
9bbc213f93
[not part of build]
...
Changed OnDataSizeChanged() to OnDataSizeChange() and added a deltaSize parameter. Added OnDataSizeChange() method on nsCacheService so we can grab the service lock and bind the entry if necessary.
Commented out the implementation of nsCacheEntryDescriptor::AsyncWrite(), since we are not planning to provide it.
git-svn-id: svn://10.0.0.236/trunk@88275 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 05:01:43 +00:00
beard%netscape.com
f02cafb056
[not part of build] truncate files when mode = nsICache::ACCESS_WRITE.
...
git-svn-id: svn://10.0.0.236/trunk@88186 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 12:09:41 +00:00
beard%netscape.com
6a9fa46232
[not part of build] create up to 3 different transports for different nsCacheAccessMode values.
...
git-svn-id: svn://10.0.0.236/trunk@88185 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 11:30:39 +00:00
beard%netscape.com
ff1dfa18a0
[not part of build] enforce nsCacheAccessMode when creating transports.
...
git-svn-id: svn://10.0.0.236/trunk@88183 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 10:04:27 +00:00
beard%netscape.com
3ed3c24937
[not part of build] successfully creates writeable nsITransport for cache files!
...
git-svn-id: svn://10.0.0.236/trunk@88175 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 05:05:29 +00:00
beard%netscape.com
30cfa8e6e2
[not part of build] must call init on hashtable in nsDiskCacheDevice::Init().
...
git-svn-id: svn://10.0.0.236/trunk@88169 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:17:56 +00:00
beard%netscape.com
a10e2443b8
[not part of build] using nsIPref to find cache directory, first cut at creating nsITransport for cache entries.
...
git-svn-id: svn://10.0.0.236/trunk@88165 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:00:08 +00:00
gordon%netscape.com
4fe759cae0
Added DoomEntry() to nsCacheDevice.
...
git-svn-id: svn://10.0.0.236/trunk@88162 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 03:42:33 +00:00
gordon%netscape.com
8b61a442bc
Changed GetKey() to return key as return value, rather than out parameter. Added flag predicates for storage policy.
...
git-svn-id: svn://10.0.0.236/trunk@88063 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 05:35:53 +00:00
gordon%netscape.com
c1cbcd4c4c
Updated new cache source to build with recent changes to interface files. These files are not part of the build. r=beard, darin.
...
git-svn-id: svn://10.0.0.236/trunk@87862 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-24 01:02:37 +00:00
gordon%netscape.com
cfbd099fb3
Rough first cut of cache service and memory object cache. It currently builds on linux.
...
git-svn-id: svn://10.0.0.236/trunk@87809 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-23 13:18:01 +00:00