Skip to content

Commit

Permalink
fix: native tag table get failed
Browse files Browse the repository at this point in the history
  • Loading branch information
lzf575 committed Feb 17, 2025
1 parent 847a4e6 commit 23fa805
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions server/libs/nativetag/nativetag.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func ToNativeTagTable(db, table string) (NativeTagTable, error) {
type NativeTagType uint8

const (
NATIVE_TAG_STRING NativeTagType = iota
NATIVE_TAG_STRING NativeTagType = iota + 1
NATIVE_TAG_INT64
NATIVE_TAG_FLOAT64
)
Expand Down Expand Up @@ -120,7 +120,7 @@ func (t NativeTagType) IndexString() string {
type NativeTagOP uint8

const (
NATIVE_TAG_ADD NativeTagOP = iota
NATIVE_TAG_ADD NativeTagOP = iota + 1
NATIVE_TAG_DELETE
)

Expand Down Expand Up @@ -209,7 +209,10 @@ func UpdateNativeTag(op NativeTagOP, orgId uint16, nativeTag *NativeTag) {

oldNativeTag := NativeTags[orgId][tableId]
if oldNativeTag == nil {
oldNativeTag = &NativeTag{}
oldNativeTag = &NativeTag{
Db: nativeTag.Db,
Table: nativeTag.Table,
}
}

if op == NATIVE_TAG_ADD {
Expand Down

0 comments on commit 23fa805

Please sign in to comment.