Skip to content

Problems with memory mapped files #8

@Archie3d

Description

@Archie3d

Two problems:

  • in index.go the "github.com/tysontate/gommap" package does not exist and should be replaced with "github.com/tysonmote/gommap" (or alternatively - "github.com/edsrzf/mmap-go")
  • The unit test segment_test.go does not close the segment before re-opening it. This leaks the mmaped file handles (at least on Windows) which results in test failure when calling s.Remove() (unable to truncate a mmaped file). The segment must be closed (s.Close()) before calling s, err = newSegment(dir, 16, c) for the test to pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions