[#34] localstore: Store object identifier in meta storage

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-09-22 09:46:24 +03:00 committed by Alex Vanin
parent 99d380c20b
commit ded0350c5e

View file

@ -47,6 +47,7 @@ func metaFromObject(o *object.Object) *ObjectMeta {
meta.savedAtEpoch = 10 meta.savedAtEpoch = 10
raw := object.NewRaw() raw := object.NewRaw()
raw.SetID(o.GetID())
raw.SetContainerID(o.GetContainerID()) raw.SetContainerID(o.GetContainerID())
raw.SetOwnerID(o.GetOwnerID()) raw.SetOwnerID(o.GetOwnerID())
// TODO: set other meta fields // TODO: set other meta fields