// If errcall is set, call it with the format string and optionally the stderrstring (if include_stderrstring). The prefix is passed as a separate argument.
// If errfile is set, print to the errfile: prefix, fmt string, maybe include the stderr string.
...
...
@@ -96,14 +143,6 @@ void toku_do_error_all_cases(const DB_ENV * env, int error, int include_stderrst
if(!pdb)returnEINVAL;//c_pget does not work on a primary.
// If data and primary_key are both zeroed, the temporary storage used to fill in data is different in the two cases because they come from different trees.
assert(db->i->brt!=pdb->i->brt);// Make sure they realy are different trees.
return"Database Bad Format (probably a corrupted database)";
}
staticcharunknown_result[100];// Race condition if two threads call this at the same time. However even in a bad case, it should be some sort of nul-terminated string.
staticcharunknown_result[100];// Race condition if two threads call this at the same time. However even in a bad case, it should be some sort of null-terminated string.