@@ -285,8 +285,14 @@ MutationLog::MutationLog(const std::string &path,
285285}
286286
287287MutationLog::~MutationLog () {
288+ std::stringstream ss;
289+ ss << *this ;
290+ LOG (EXTENSION_LOG_NOTICE, " %s" , ss.str ().c_str ());
291+ LOG (EXTENSION_LOG_NOTICE, " MutationLog::~MutationLog flush" );
288292 flush ();
293+ LOG (EXTENSION_LOG_NOTICE, " MutationLog::~MutationLog close" );
289294 close ();
295+ LOG (EXTENSION_LOG_NOTICE, " MutationLog::~MutationLog done" );
290296}
291297
292298void MutationLog::disable () {
@@ -1019,3 +1025,19 @@ std::ostream& operator <<(std::ostream &out, const MutationLogEntry &mle) {
10191025 << " , key=``" << mle.key () << " ''" ;
10201026 return out;
10211027}
1028+
1029+ std::ostream& operator <<(std::ostream& out, const MutationLog& mlog) {
1030+ out << " MutationLog{logPath:" << mlog.logPath << " , "
1031+ << " blockSize:" << mlog.blockSize << " , "
1032+ << " blockPos:" << mlog.blockPos << " , "
1033+ << " file:" << mlog.file << " , "
1034+ << " disabled:" << mlog.disabled << " , "
1035+ << " entries:" << mlog.entries << " , "
1036+ << " entryBuffer:" << reinterpret_cast <void *>(mlog.entryBuffer .get ())
1037+ << " , "
1038+ << " blockBuffer:" << reinterpret_cast <void *>(mlog.blockBuffer .get ())
1039+ << " , "
1040+ << " syncConfig:" << int (mlog.syncConfig ) << " , "
1041+ << " readOnly:" << mlog.readOnly << " }" ;
1042+ return out;
1043+ }
0 commit comments