Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fixed #520 failure of rename on Windows; fixed tests 213, 214
- Loading branch information
Showing
with
17 additions
and 12 deletions.
- +1 −1 src/searchd.cpp
- +8 −8 src/sphinx.cpp
- +5 −0 src/sphinxint.h
- +2 −2 src/sphinxplugin.cpp
- +1 −1 src/sphinxrt.cpp
///////////////////////////////// | ||
|
||
tWriter.CloseFile(); | ||
if ( ::rename ( sNewState.cstr(), g_sSphinxqlState.cstr() )==0 ) | ||
if ( sph::rename ( sNewState.cstr(), g_sSphinxqlState.cstr() )==0 ) | ||
{ | ||
::unlink ( sNewState.cstr() ); | ||
} else |