fix: only master node can migrate database

This commit is contained in:
JustSong
2023-06-22 00:52:27 +08:00
parent b90b8a9d8c
commit 64d026fc1a
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -1,6 +1,7 @@
package common
import (
"os"
"sync"
"time"
@@ -67,6 +68,8 @@ var PreConsumedQuota = 500
var RootUserEmail = ""
var IsMasterNode = os.Getenv("SYNC_FREQUENCY") == ""
const (
RoleGuestUser = 0
RoleCommonUser = 1