diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2014-03-05 14:51:06 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2014-03-05 14:51:06 +0000 |
| commit | 58c93e3b5e6c2227cc0018720a8781b25ec0d288 (patch) | |
| tree | 14bb3b30ec1029c372687b7af01b9a848afe2a1b /qpid/cpp | |
| parent | 3f572f058df48030416fd54e6ae23e05cdd607a9 (diff) | |
| download | qpid-python-58c93e3b5e6c2227cc0018720a8781b25ec0d288.tar.gz | |
QPID-5603: Broker recovery fails with JERR_JREC_BADRECTAIL when record tail is partly or fully separated from rest of record by file boundary
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1574513 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/linearstore/journal/RecoveryManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/linearstore/journal/RecoveryManager.cpp b/qpid/cpp/src/qpid/linearstore/journal/RecoveryManager.cpp index a1cec53ca1..b8d7ae63bd 100644 --- a/qpid/cpp/src/qpid/linearstore/journal/RecoveryManager.cpp +++ b/qpid/cpp/src/qpid/linearstore/journal/RecoveryManager.cpp @@ -239,7 +239,7 @@ bool RecoveryManager::readNextRemainingRecord(void** const dataPtrPtr, checksum.addData((const unsigned char*)*dataPtrPtr, dataSize); } ::rec_tail_t enqueueTail; - inFileStream_.read((char*)&enqueueTail, sizeof(::rec_tail_t)); + readJournalData((char*)&enqueueTail, sizeof(::rec_tail_t)); uint32_t cs = checksum.getChecksum(); uint16_t res = ::rec_tail_check(&enqueueTail, &enqueueHeader._rhdr, cs); if (res != 0) { |
