- Changed storeGetMemSpace so that it doesn't immediately exit
if the store is in rebuilding phase. Purging memory objects
should be a "light" activity, so there should be no performance
penalty. If we don't purge memory objects during the rebuild
phase, then memory usage grows without bounds until rebuilding
is complete. At high workloads this can cause malloc to fail.
/*
- * $Id: store.cc,v 1.513 2000/02/01 05:17:58 wessels Exp $
+ * $Id: store.cc,v 1.514 2000/02/01 05:43:02 wessels Exp $
*
* DEBUG: section 20 Storage Manager
* AUTHOR: Harvest Derived
pages_needed = (size / SM_PAGE_SIZE) + 1;
if (memInUse(MEM_STMEM_BUF) + pages_needed < store_pages_max)
return;
- if (store_dirs_rebuilding)
- return;
debug(20, 2) ("storeGetMemSpace: Starting, need %d pages\n", pages_needed);
#if HEAP_REPLACEMENT
while (heap_nodes(inmem_heap) > 0) {