Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
receiver: Avoid flushing the WAL twice on startup (#1606)
* Avoid flushing the WAL twice when starting the receiver. Instead we wait for the hashring to be loaded which will force a WAL flush. When stopping the receiver we also stop the DB before flushing to avoid re-opening the DB unnecessarily. Signed-off-by: Devin Trejo <dtrejo@palantir.com> * Trailing period. Signed-off-by: Devin Trejo <dtrejo@palantir.com> * Revert previous change where we closed the db before flushing. Move defintion of the db inside of the rungroup. Signed-off-by: Devin Trejo <dtrejo@palantir.com> Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
- Loading branch information