Skip to content

Commit

Permalink
db: revert file insert due to bug in go.dbstorage
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Oct 17, 2020
1 parent 48adaee commit 10fd395
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/db/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ func CreateFile(rt, pt string, sz, mt int64, h1, h2, h3, h4, h5, h6 string) {
defer dbstorage.InsertsLock.Unlock()
//
id := FS.QueryNextID(ctFile)
rv := &File{id, rt, pt, "", sz, "", mt, "", h1, h2, h3, h4, h5, h6}
FS.Build().InsI(ctFile, rv).Exe()
FS.Build().Ins(ctFile, id, rt, pt, sz, mt, h1, h2, h3, h4, h5, h6).Exe()
}

func DropFilesFromRoot(rt string) {
Expand Down

0 comments on commit 10fd395

Please sign in to comment.