Skip to content

Commit 0963845

Browse files
author
Artyom Ivanov
committed
Fixes after review
1 parent 134f69e commit 0963845

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/jrd/os/posix/unix.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,7 @@ bool PIO_expand(const TEXT* file_name, USHORT file_length, TEXT* expanded_name,
302302
bool PIO_fast_extension_is_supported(const Jrd::jrd_file& file) noexcept
303303
{
304304
#if defined(HAVE_LINUX_FALLOC_H) && defined(HAVE_FALLOCATE)
305-
return file.fil_flags & FIL_no_fast_extend
306-
? false
307-
: true;
305+
return !(file.fil_flags & FIL_no_fast_extend);
308306
#else
309307
return false;
310308
#endif

src/jrd/pag.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,8 @@ namespace
275275
const ULONG sequence = pageNum.getPageNum() / pageMgr.pagesPerPIP;
276276
const ULONG relativeBit = pageNum.getPageNum() - sequence * pageMgr.pagesPerPIP;
277277

278-
if (relativeBit + 1 <= pipUsed)
278+
if (relativeBit < pipUsed)
279279
return pipUsed;
280-
fb_assert(relativeBit >= pipUsed);
281280

282281
BackupManager::StateReadGuard stateGuard(tdbb);
283282

0 commit comments

Comments
 (0)