Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-7760

Use NIO in the implementation of FileAccess.Mapped#read

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0, 1.9.9
    • segment-tar
    • None

    Description

      FileAccess.Random#read currently uses RandomAccessFile#readFully() to read a segment from a tar file. That method requires a byte array and does not work with ByteBuffer instances directly. To make this method more universal (e.g. to work also for off heap byte buffers) I would like to change it to use FileChannel#read instead.

      Attachments

        Activity

          People

            mduerig Michael Dürig
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: