readdb: save walSequence provided by data file
This commit is contained in:
parent
16820e9033
commit
3f64bda0cc
@ -188,6 +188,16 @@ func (r *ReadDB) SyncFromDump() (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
err = r.rdb.Do(func(tx *db.Tx) error {
|
||||
if err := r.insertCommittedWalSequence(tx, dumpIndex.WalSequence); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return dumpIndex.WalSequence, nil
|
||||
}
|
||||
|
||||
|
@ -702,6 +702,16 @@ func (r *ReadDB) SyncFromDump() (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
err = r.rdb.Do(func(tx *db.Tx) error {
|
||||
if err := r.insertCommittedWalSequenceOST(tx, dumpIndex.WalSequence); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return dumpIndex.WalSequence, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user