🎨 Update database

This commit is contained in:
Daniel 2023-10-18 23:52:06 +08:00
parent f4258c706d
commit 2b733a776a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -645,12 +645,6 @@ func setAttributeViewColumnCalc(operation *Operation) (err error) {
func (tx *Transaction) doInsertAttrViewBlock(operation *Operation) (ret *TxErr) {
for _, id := range operation.SrcIDs {
tree, err := tx.loadTree(id)
if nil == tree {
operation.IsDetached = true
} else {
operation.IsDetached = false
}
if nil != err && !operation.IsDetached {
logging.LogErrorf("load tree [%s] failed: %s", id, err)
return &TxErr{code: TxErrCodeBlockNotFound, id: id, msg: err.Error()}