Skip to content

Commit

Permalink
Fix windows compilation
Browse files Browse the repository at this point in the history
Some minor fixes for compilation in Windows.
  • Loading branch information
cevian committed Oct 29, 2019
1 parent 5241053 commit d2db84f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/compression_chunk_size.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ts_compression_chunk_size_delete(int32 uncompressed_chunk_id)
TotalSizes
ts_compression_chunk_size_totals()
{
TotalSizes sizes = {};
TotalSizes sizes = { 0 };
ScanIterator iterator =
ts_scan_iterator_create(COMPRESSION_CHUNK_SIZE, AccessExclusiveLock, CurrentMemoryContext);

Expand Down
14 changes: 9 additions & 5 deletions src/hypertable.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,11 @@ ts_number_of_user_hypertables()

ts_scanner_foreach(&iterator)
{
Hypertable *hyper = ts_hypertable_from_tupleinfo(ts_scan_iterator_tuple_info(&iterator));
ContinuousAggHypertableStatus status = ts_continuous_agg_hypertable_status(hyper->fd.id);
if (!hyper->fd.compressed && status != HypertableIsMaterialization)
TupleInfo *ti = ts_scan_iterator_tuple_info(&iterator);
Hypertable *ht = ts_hypertable_from_tupleinfo(ti);
ContinuousAggHypertableStatus status = ts_continuous_agg_hypertable_status(ht->fd.id);

if (!ht->fd.compressed && status != HypertableIsMaterialization)
count++;
}
return count;
Expand All @@ -322,8 +324,10 @@ ts_number_compressed_hypertables()

ts_scanner_foreach(&iterator)
{
Hypertable *hyper = ts_hypertable_from_tupleinfo(ts_scan_iterator_tuple_info(&iterator));
if (hyper->fd.compressed_hypertable_id != INVALID_HYPERTABLE_ID)
TupleInfo *ti = ts_scan_iterator_tuple_info(&iterator);
Hypertable *ht = ts_hypertable_from_tupleinfo(ti);

if (ht->fd.compressed_hypertable_id != INVALID_HYPERTABLE_ID)
count++;
}
return count;
Expand Down

0 comments on commit d2db84f

Please sign in to comment.