Improve database meta handling

This commit is contained in:
Daniel 2019-03-08 23:16:36 +01:00
parent 0e2733a342
commit 1133c78f85
5 changed files with 24 additions and 9 deletions

View file

@ -116,11 +116,6 @@ func (c *Controller) Put(r record.Record) (err error) {
}
}
if r.Meta() == nil {
r.SetMeta(&record.Meta{})
}
r.Meta().Update()
c.writeLock.RLock()
defer c.writeLock.RUnlock()