Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29696
Modified Files:
mal_recycle.mx
Log Message:
Check if the recycle block exists...
Index: mal_recycle.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_recycle.mx,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- mal_recycle.mx 11 Mar 2008 19:59:18 -0000 1.32
+++ mal_recycle.mx 11 Mar 2008 21:27:38 -0000 1.33
@@ -232,8 +232,9 @@
long RECYCLEfootprint(){
long cnt = 0;
int i;
- for( i=0; i<recycleBlk->stop; i++)
- cnt += recycleBlk->profiler[i].obytes;
+ if (recycleBlk)
+ for( i=0; i<recycleBlk->stop; i++)
+ cnt += recycleBlk->profiler[i].obytes;
return cnt;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins