Skip to content

Race condition when a GMO and GMF are processed at the same time #301

@ccev

Description

@ccev

Currently, when requesting a GMO and GMF (GetMapForts) on a previously unscanned location at once, Golbat will only process some of the forts in GMF. That's because in order for a GMF to be processed, there must be these forts already present in the database. But when scanning a new area, that may not be guaranteed.

This behaviour will commonly occur and be visible to user while using scout.

A solution would be to hold onto forts from GMFs that don't have a matching record for a minute or so, and then check that cache while inserting a new fort.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions