diff --git a/Mem.cpp b/Mem.cpp index f36776a1..65c1154a 100644 --- a/Mem.cpp +++ b/Mem.cpp @@ -537,7 +537,7 @@ void Mem::addMem ( void *mem , int32_t size , const char *note , char isnew ) { if ( ! s_initialized ) { //m_memtablesize = m_maxMem / 6510; // support 1.2M ptrs for now. good for about 8GB - m_memtablesize = 1200*1024;//m_maxMem / 6510; + m_memtablesize = 3000*1024;//m_maxMem / 6510; //if ( m_maxMem < 8000000000 ) { char *xx=NULL;*xx=0; } } diff --git a/RdbBase.cpp b/RdbBase.cpp index 78253a18..7758d6eb 100644 --- a/RdbBase.cpp +++ b/RdbBase.cpp @@ -1359,6 +1359,9 @@ void RdbBase::attemptMerge ( int32_t niceness, bool forceMergeAll, bool doLog , if ( g_merge.m_isSuspended ) return; if ( g_merge2.m_isSuspended ) return; + // shutting down? do not start another merge then + if ( g_process.m_mode == EXIT_MODE ) return; + // sanity checks if ( g_loop.m_inQuickPoll ) { log("rdb: cant attempt merge in quickpoll");