@@ -134,7 +134,7 @@ static void chunk_scan_ctx_init(ChunkScanCtx *ctx, const Hypertable *ht, const P
134
134
static void chunk_scan_ctx_destroy (ChunkScanCtx * ctx );
135
135
static void chunk_collision_scan (ChunkScanCtx * scanctx , const Hypercube * cube );
136
136
static int chunk_scan_ctx_foreach_chunk_stub (ChunkScanCtx * ctx , on_chunk_stub_func on_chunk ,
137
- uint16 limit );
137
+ uint64 limit );
138
138
static Datum show_chunks_return_srf (FunctionCallInfo fcinfo );
139
139
static int chunk_cmp (const void * ch1 , const void * ch2 );
140
140
static int chunk_point_find_chunk_id (const Hypertable * ht , const Point * p );
@@ -1791,7 +1791,7 @@ chunk_collision_scan(ChunkScanCtx *scanctx, const Hypercube *cube)
1791
1791
* Returns the number of processed chunks.
1792
1792
*/
1793
1793
static int
1794
- chunk_scan_ctx_foreach_chunk_stub (ChunkScanCtx * ctx , on_chunk_stub_func on_chunk , uint16 limit )
1794
+ chunk_scan_ctx_foreach_chunk_stub (ChunkScanCtx * ctx , on_chunk_stub_func on_chunk , uint64 limit )
1795
1795
{
1796
1796
HASH_SEQ_STATUS status ;
1797
1797
ChunkScanEntry * entry ;
@@ -2274,7 +2274,7 @@ get_chunks_in_time_range(Hypertable *ht, int64 older_than, int64 newer_than, Mem
2274
2274
2275
2275
/* Get all the chunks from the context */
2276
2276
chunk_scan_ctx .data = & data ;
2277
- chunk_scan_ctx_foreach_chunk_stub (& chunk_scan_ctx , chunk_scan_context_add_chunk , -1 );
2277
+ chunk_scan_ctx_foreach_chunk_stub (& chunk_scan_ctx , chunk_scan_context_add_chunk , 0 );
2278
2278
/*
2279
2279
* only affects ctx.htab Got all the chunk already so can now safely
2280
2280
* destroy the context
0 commit comments