Re: cvs commit: squid3/src Store.h protos.h store.cc store_client.cc store_swapout.cc

2007-04-19 Thread Duane Wessels




On Wed, 18 Apr 2007, Tsantilas Christos wrote:


Hi Duane,
 the StoreEntry::swapOut() does not compile when SIZEIF_OFF_T==4
I am using the following patch, but I am not sure if it is OK ...


Thanks, I've applied the patch.


Re: cvs commit: squid3/src Store.h protos.h store.cc store_client.cc store_swapout.cc

2007-04-18 Thread Tsantilas Christos
Hi Duane,
  the StoreEntry::swapOut() does not compile when SIZEIF_OFF_T==4
I am using the following patch, but I am not sure if it is OK ...

Regards,
   Christos


--- store_swapout.cc18 Apr 2007 00:47:23 -  1.20
+++ store_swapout.cc18 Apr 2007 18:24:04 -
@@ -234,8 +234,8 @@
 #if SIZEOF_OFF_T == 4

 if (mem_obj-endOffset()  0x7FFF) {
-debug(20, 0) (WARNING: preventing off_t overflow for %s\n,
storeUrl(e));
-storeAbort(e);
+debug(20, 0) (WARNING: preventing off_t overflow for %s\n,
storeUrl(this));
+storeAbort(this);
 return;
 }


Duane Wessels wrote:
 ...
   Converted three store_swapout.cc functions to StoreEntry class methods
   
   storeSwapOut() is now StoreEntry::swapOut()
   storeSwapOutFileClose() is now StoreEntry::swapOutFileClose()
   storeSwapOutAble() is now Storeentry::swapOutAble()
   
  .