Skip to content

Commit e396f58

Browse files
authored
Merge pull request #263 from TileDB-Inc/ss/consolidation-config-keepalive
Add keepalive to config for consolidate/vacuum
2 parents 8d575ee + 6602b77 commit e396f58

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

array.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import "C"
1111
import (
1212
"encoding/json"
1313
"fmt"
14+
"runtime"
1415
"unsafe"
1516
)
1617

@@ -200,6 +201,8 @@ func (a *Array) Consolidate(config *Config) error {
200201
if ret != C.TILEDB_OK {
201202
return fmt.Errorf("Error consolidating tiledb array: %s", a.context.LastError())
202203
}
204+
205+
runtime.KeepAlive(config)
203206
return nil
204207
}
205208

@@ -215,6 +218,8 @@ func (a *Array) Vacuum(config *Config) error {
215218
if ret != C.TILEDB_OK {
216219
return fmt.Errorf("Error vacuumimg tiledb array: %s", a.context.LastError())
217220
}
221+
222+
runtime.KeepAlive(config)
218223
return nil
219224
}
220225

0 commit comments

Comments
 (0)