diff options
author | Pan Liu <pan.liu@istuary.com> | 2017-03-06 05:35:22 +0100 |
---|---|---|
committer | Pan Liu <pan.liu@istuary.com> | 2017-03-06 05:35:22 +0100 |
commit | cd10b8dc913a1438a4cce55c4ea7853561e98433 (patch) | |
tree | 2e97b512a37e898875759c353758ea277c385510 /src/os/filestore/FileJournal.cc | |
parent | Merge pull request #13427 from ly798/update-info (diff) | |
download | ceph-cd10b8dc913a1438a4cce55c4ea7853561e98433.tar.xz ceph-cd10b8dc913a1438a4cce55c4ea7853561e98433.zip |
os/filestore: use existing variable to assign newsize.
Signed-off-by: Pan Liu <liupan1111@gmail.com>
Diffstat (limited to 'src/os/filestore/FileJournal.cc')
-rw-r--r-- | src/os/filestore/FileJournal.cc | 5 |
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; |