fluree / db

Fluree database library
https://fluree.github.io/db/
Other
337 stars 21 forks source link

Index wasn't updating latest commit t file #768

Closed bplatz closed 4 months ago

bplatz commented 4 months ago

When an index was in-process but a new commit happens before it finishes, the index lock state updates the latest commit such that when the indexing finishes, it can update that commit.

It was updating the latest commit in the wrong key, therefore once the indexing completed it was always returning the same commit when the indexing started, not the more updated commit if it existed.

This fixes the key location where it updates the latest commit.