Skip to content
Permalink
Browse files

fixed #1094 binlog invalid state on error no space left on disk

  • Loading branch information
tomatolog committed Nov 19, 2019
1 parent 5331972 commit 795520ac351d22e4497ebaf6c249bf25081842b6
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/sphinxrt.cpp
@@ -8411,6 +8411,9 @@ void RtBinlog_c::OpenNewLog ( int iLastState )
tLog.m_iExt = iExt;
m_dLogFiles.Add ( tLog );

// update meta first then only remove binlog file
SaveMeta();

// create file
CSphString sLog = MakeBinlogName ( m_sLogPath.cstr(), tLog.m_iExt );

@@ -8423,9 +8426,6 @@ void RtBinlog_c::OpenNewLog ( int iLastState )
// emit header
m_tWriter.PutDword ( BINLOG_HEADER_MAGIC );
m_tWriter.PutDword ( BINLOG_VERSION );

// update meta
SaveMeta();
}

void RtBinlog_c::DoCacheWrite ()

0 comments on commit 795520a

Please sign in to comment.
You can’t perform that action at this time.