Skip to content

Initialize write-cache asynchronously #32

@fyrchik

Description

@fyrchik

Init iterates over all objects

.
We should launch it in a goroutine:

  1. Writecache should return ErrInitializing (or sth similar) on modifying operations until this goroutine finishes.
  2. The goroutine should finish prematurely if Close() is called.
  3. Don't forget about possible interference with SetMode.

Testing

start/restart a service with a completely filled write caches -- shouldn't take more than 1-2 minutes (ideally <10 sec is expected)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions