We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03edf91 commit bfc5f73Copy full SHA for bfc5f73
src/terark/db/trbdb/trb_db_segment.cpp
@@ -231,7 +231,7 @@ class TrbLogger
231
{
232
continue;
233
}
234
- struct BadTrbLogException : std::logic_error
+ struct BadTrbLogException : public std::logic_error
235
236
BadTrbLogException(std::string f) : std::logic_error("TrbSegment bad log : " + f)
237
@@ -413,7 +413,11 @@ class TrbLogger
413
414
if(!seqHeap.empty())
415
416
- throw badLog;
+ fprintf(stderr,
417
+ "WARN: TrgSegment log incomplete , caused by unsafe shutdown . %s : %zd operation(s)\n",
418
+ fileName.c_str(),
419
+ seqHeap.size()
420
+ );
421
422
if(pos != in.end())
423
0 commit comments