summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/os/filestore/FileJournal.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/os/filestore/FileJournal.cc b/src/os/filestore/FileJournal.cc
index 0781e2c6955..5382a008ecb 100644
--- a/src/os/filestore/FileJournal.cc
+++ b/src/os/filestore/FileJournal.cc
@@ -189,9 +189,8 @@ int FileJournal::_open_file(int64_t oldsize, blksize_t blksize,
}
if (create && (oldsize < conf_journal_sz)) {
- uint64_t newsize(cct->_conf->osd_journal_size);
- newsize <<= 20;
- dout(10) << "_open extending to " << newsize << " bytes" << dendl;
+ uint64_t newsize(conf_journal_sz);
+ dout(10) << __func__ << " _open extending to " << newsize << " bytes" << dendl;
ret = ::ftruncate(fd, newsize);
if (ret < 0) {
int err = errno;