diff options
author | bunnei <bunneidev@gmail.com> | 2014-11-19 15:24:46 -0500 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-11-19 15:24:46 -0500 |
commit | c0cd0fa78edc37795176c6fb45a52c1d015f3690 (patch) | |
tree | 237f15dd9d986309000c995fde07088625e62239 /src/common/linear_disk_cache.h | |
parent | 112768f4365816d345b0dc9b93bfecc3d41a69b5 (diff) | |
parent | 739bb58c3a92ba94baeaa2156dc72fb7ff0ce8b7 (diff) |
Merge pull request #211 from linkmauve/master
Remove trailing spaces from the entire project
Diffstat (limited to 'src/common/linear_disk_cache.h')
-rw-r--r-- | src/common/linear_disk_cache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/linear_disk_cache.h b/src/common/linear_disk_cache.h index 96dce3155..f4263f72a 100644 --- a/src/common/linear_disk_cache.h +++ b/src/common/linear_disk_cache.h @@ -64,7 +64,7 @@ public: m_file.seekg(0, std::ios::beg); std::fstream::pos_type start_pos = m_file.tellg(); std::streamoff file_size = end_pos - start_pos; - + if (m_file.is_open() && ValidateHeader()) { // good header, read some key/value pairs @@ -87,7 +87,7 @@ public: // read key/value and pass to reader if (Read(&key) && - Read(value, value_size) && + Read(value, value_size) && Read(&entry_number) && entry_number == m_num_entries+1) { @@ -115,7 +115,7 @@ public: WriteHeader(); return 0; } - + void Sync() { m_file.flush(); |