Skip to content

Commit 6799764

Browse files
authored
Merge pull request #6 from dolthub/fulghum/finalize
bug fix: copy error when closing a runtime
2 parents 41d869d + 2248545 commit 6799764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func (pool *Pool) closeRuntime(ctx context.Context, rtrackerIdx int, rtracker *R
178178
// We then remove the runtime from the slice
179179
newSlice := make([]*RuntimeTracker, len(pool.runtimes)-1)
180180
copy(newSlice, pool.runtimes[:rtrackerIdx])
181-
copy(newSlice, pool.runtimes[rtrackerIdx+1:])
181+
copy(newSlice[rtrackerIdx:], pool.runtimes[rtrackerIdx+1:])
182182
pool.runtimes = newSlice
183183
}
184184

0 commit comments

Comments
 (0)