neofs-node icon indicating copy to clipboard operation
neofs-node copied to clipboard

`meta.DB.Open(readOnly)` does not move metabase in RO mode

Open carpawell opened this issue 7 months ago • 0 comments

Expected Behavior

Metabase is asked to open bbolt in RO, and I expect the internal state to be RO too.

Current Behavior

Bbolt is opened in RO, however, metabase accepts write operations and returns bbolt's error.

Possible Solution

Open sets mode to RO (additional test for it is also good).

Context

Firstly found in https://github.com/nspcc-dev/neofs-node/pull/2884.

carpawell avatar Jul 09 '24 20:07 carpawell