forked from TrueCloudLab/frostfs-node
[#647] objsvc/search: Wrap in uniqueIDWriter during parameter setting
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
966ad22abf
commit
4db2cbc927
4 changed files with 6 additions and 11 deletions
|
@ -31,7 +31,10 @@ type storageEngineWrapper struct {
|
|||
storage *engine.StorageEngine
|
||||
}
|
||||
|
||||
func newUniqueAddressWriter(w IDListWriter) IDListWriter {
|
||||
func newUniqueAddressWriter(w IDListWriter) *uniqueIDWriter {
|
||||
if w, ok := w.(*uniqueIDWriter); ok {
|
||||
return w
|
||||
}
|
||||
return &uniqueIDWriter{
|
||||
written: make(map[oid.ID]struct{}),
|
||||
writer: w,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue