Skip to content

Mem compression occurred during the creation of the iterator #439

Open
@liluo1990

Description

when leveldb create newRawIterator, it will do the following

first step:
em, fm := db.getMems()
second step:
v := db.s.version()

If first between second step, leveldb do a mem compaction。this will lead to the versions have the "fm or em data"。
I see the note NewMergedIterator :
The input's key ranges may overlap, but there are assumed to be no duplicate
keys: if iters[i] contains a key k then iters[j] will not contain that key k.

Is this the expected design?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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