crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
88ec14b1
ROOT
/
go
/
libraries
/
doltcore
/
sqle
/
cluster
/
commithook.go
Search
History
388 lines
|
ISO-8859-1
|
11 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
_
:
doltdb.CommitHook
commithook
rootLgr
:
*logrus.Entry
lgr
:
atomic.Value
remotename
:
string
dbname
:
string
mu
:
sync.Mutex
wg
:
sync.WaitGroup
cond
:
*sync.Cond
nextHead
:
hash.Hash
lastPushedHead
:
hash.Hash
nextPushAttempt
:
time.Time
nextHeadIncomingTime
:
time.Time
lastSuccess
:
time.Time
currentError
:
*string
cancelReplicate
:
func()
waitNotify
:
func()
role
:
Role
destDB
:
*doltdb.DoltDB
destDBF
:
func(context.Context) (*doltdb.DoltDB, error)
srcDB
:
*doltdb.DoltDB
tempDir
:
string
errDestDBRootHashMoved
:
error
logFieldThread
logFieldRole
newCommitHook
(lgr *logrus.Logger, remotename, dbname string, role Role, destDBF func(context.Context) (*doltdb.DoltDB, error), srcDB *doltdb.DoltDB, tempDir string)
:
*commithook
errDetectedBrokenConfigStr
*commithook
Run
(bt *sql.BackgroundThreads)
:
error
run
(ctx context.Context)
replicate
(ctx context.Context)
shouldReplicate
()
:
bool
isCaughtUp
()
:
bool
isCaughtUpLocking
()
:
bool
primaryNeedsInit
()
:
bool
attemptReplicate
(ctx context.Context)
status
()
:
(replicationLag *time.Duration, lastUpdate *time.Time, currentErr *string)
logger
()
:
*logrus.Entry
tick
(ctx context.Context)
recordSuccessfulRemoteSrvCommit
()
setRole
(role Role)
setWaitNotify
(f func())
Execute
(ctx context.Context, ds datas.Dataset, db datas.Database)
:
error
HandleError
(ctx context.Context, err error)
:
error
SetLogger
(ctx context.Context, wr io.Writer)
:
error
ExecuteForWorkingSets
()
:
bool
All occurrences
Please wait...
Page is in error, reload to recover