Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Mar 28, 2023
1 parent 8e85eb4 commit 3afb9b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/meta/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (m *dbMeta) Reset() error {
&node{}, &edge{}, &symlink{}, &xattr{},
&chunk{}, &sliceRef{}, &delslices{},
&session{}, &session2{}, &sustained{}, &delfile{},
&flock{}, &plock{}, &dirStats{}, &dirQuota{},&detachedNode{})
&flock{}, &plock{}, &dirStats{}, &dirQuota{}, &detachedNode{})
}

func (m *dbMeta) doLoad() (data []byte, err error) {
Expand All @@ -407,9 +407,9 @@ func (m *dbMeta) doLoad() (data []byte, err error) {

func (m *dbMeta) doNewSession(sinfo []byte) error {
// add new table
err := m.syncTable(new(session2), new(delslices), new(dirStats), new(dirQuota))
err := m.syncTable(new(session2), new(delslices), new(dirStats), new(detachedNode), new(dirQuota))
if err != nil {
return fmt.Errorf("update table session2, delslices, dirstats, dirQuota: %s", err)
return fmt.Errorf("update table session2, delslices, dirstats, detachedNode, dirQuota: %s", err)
}
// add primary key
if err = m.syncTable(new(edge), new(chunk), new(xattr), new(sustained)); err != nil {
Expand Down

0 comments on commit 3afb9b2

Please sign in to comment.