Skip to content

Commit

Permalink
🐛 #11776 #11773
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jun 21, 2024
1 parent 6f37046 commit ef6daed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/treenode/blocktree.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func CountBlocks() (ret int) {

func GetBlockTreeRootByPath(boxID, path string) (ret *BlockTree) {
ret = &BlockTree{}
sqlStmt := "SELECT * FROM blocktrees WHERE box_id = ? AND path = ?"
sqlStmt := "SELECT * FROM blocktrees WHERE box_id = ? AND path = ? AND type = 'd'"
err := db.QueryRow(sqlStmt, boxID, path).Scan(&ret.ID, &ret.RootID, &ret.ParentID, &ret.BoxID, &ret.Path, &ret.HPath, &ret.Updated, &ret.Type)
if nil != err {
ret = nil
Expand Down

0 comments on commit ef6daed

Please sign in to comment.