exit if corruption detected at startup

This commit is contained in:
Matt Wells
2015-06-17 10:17:36 -07:00
parent 68d04b239f
commit 43130f3a8d
2 changed files with 2 additions and 1 deletions

@ -785,7 +785,7 @@ bool Msg3::doneScanning ( ) {
// if shutting down gb then limit to 20 so we can shutdown because
// it can't shutdown until all threads are out of the queue i think
if ( g_process.m_mode == EXIT_MODE && max < 0 ) {
log("msg3: forcing retries to 0 because shutting down");
//log("msg3: forcing retries to 0 because shutting down");
max = 0;
}

@ -337,6 +337,7 @@ bool RdbMap::verifyMap2 ( ) {
KEY1(lastKey,m_ks),KEY0(lastKey));
log("db: k.n1=%016"XINT64" n0=%016"XINT64"",KEY1(k,m_ks),KEY0(k));
log("db: m_numPages = %"INT32"",m_numPages);
exit(0);
//char *xx=NULL;*xx=0;
// was k too small?
//if ( i + 1 < m_numPages && lastKey <= getKey(i+1) ) {