Skip to content
Permalink
Browse files

fixed #736 binlog saves of empty meta

  • Loading branch information...
tomatolog committed Mar 6, 2019
1 parent 4aa6c69 commit 250b3f0e74ad18dda34ba080aa13ca87798a9ac9
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/sphinxrt.cpp
@@ -9663,6 +9663,12 @@ void RtBinlog_c::SaveMeta ()

wrMeta.CloseFile();

if ( wrMeta.IsError() )
{
sphWarning ( "%s", sError.cstr() );
return;
}

if ( sph::rename ( sMeta.cstr(), sMetaOld.cstr() ) )
sphDie ( "failed to rename meta (src=%s, dst=%s, errno=%d, error=%s)",
sMeta.cstr(), sMetaOld.cstr(), errno, strerrorm(errno) ); // !COMMIT handle this gracefully

0 comments on commit 250b3f0

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