Possibly wrong posix_fadvise hints

Bug #925441 reported by Laurynas Biveinis on 2012-02-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Alexey Kopytov
Fix Released
Alexey Kopytov

Bug Description

posix_fadvise usage in XtraBackup sources have to be audited. Superficially at least some of them look wrong, i.e. POSIX_FADV_DONTNEED before file access.

Related branches

Changed in percona-xtrabackup:
milestone: none → 1.9.3
assignee: nobody → Alexey Kopytov (akopytov)
status: Confirmed → In Progress
Alexey Kopytov (akopytov) wrote :

The problem was that posix_fadvise(POSIX_FADV_DONTNEED) was used
incorrectly, because the call just releases already cached pages from
the pagecache, thus making a single-shot call before file access

Fixed by making sure the call is invoked after each read/write to
make the feature work as advertised.

Changed in percona-xtrabackup:
status: In Progress → Fix Committed

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-844

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers