update doltdb.go

This commit is contained in:
jennifersp
2021-11-05 11:46:29 -07:00
parent eaa2c426a5
commit acb5b5d2bb

View File

@@ -1278,10 +1278,7 @@ func (ddb *DoltDB) PushChunksForRefHash(ctx context.Context, tempDir string, src
func (ddb *DoltDB) PullChunks(ctx context.Context, tempDir string, srcDB *DoltDB, stRef types.Ref, progChan chan datas.PullProgress, pullerEventCh chan datas.PullerEvent) error {
if datas.CanUsePuller(srcDB.db) && datas.CanUsePuller(ddb.db) {
puller, err := datas.NewPuller(ctx, tempDir, defaultChunksPerTF, srcDB.db, ddb.db, stRef.TargetHash(), pullerEventCh)
if err == datas.ErrDBUpToDate {
return datas.ErrDBUpToDate
} else if err != nil {
if err != nil {
return err
}