diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-27 10:49:43 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-27 10:49:43 +0000 |
commit | eb006d74dd8bbadbd7a551e732e373e7cf3ad9c9 (patch) | |
tree | d796696a0edac5701ca9726ee5f564fc4e405410 /obj.c | |
parent | 327467c6f685d25621bb33bc3ab746800ba008d2 (diff) | |
download | rsyslog-eb006d74dd8bbadbd7a551e732e373e7cf3ad9c9.tar.gz rsyslog-eb006d74dd8bbadbd7a551e732e373e7cf3ad9c9.tar.xz rsyslog-eb006d74dd8bbadbd7a551e732e373e7cf3ad9c9.zip |
bugfix: queue disk file were not properly persisted when immediately after
closing an output file rsyslog was stopped or huped (the new output
file open must NOT have happend at that point) - this lead to a sparse
and invalid queue file which could cause several problems to the engine
(unpredictable results). This situation should have happened only in
very rare cases. tracker:
http://bugzilla.adiscon.com/show_bug.cgi?id=40
Diffstat (limited to 'obj.c')
-rw-r--r-- | obj.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -460,8 +460,9 @@ static rsRetVal objDeserializeHeader(uchar *pszRecType, objID_t *poID, int* poVe /* and now we skip over the rest until the delemiting \n */ NEXTC; - while(c != '\n') + while(c != '\n') { NEXTC; + } *poID = (objID_t) ioID; *poVers = oVers; @@ -659,6 +660,7 @@ rsRetVal objDeserialize(void *ppObj, objID_t objTypeExpected, strm_t *pStrm, rsR iRetLocal = objDeserializeHeader((uchar*) "Obj", &oID, &oVers, pStrm); if(iRetLocal != RS_RET_OK) { dbgprintf("objDeserialize error %d during header processing - trying to recover\n", iRetLocal); +abort(); CHKiRet(objDeserializeTryRecover(pStrm)); } } while(iRetLocal != RS_RET_OK); |