Skip to content

Commit

Permalink
mod
Browse files Browse the repository at this point in the history
  • Loading branch information
gayyappan committed Sep 19, 2023
1 parent b4c2b56 commit 644b58b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/osm_callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ts_get_osm_callbacks(void)
return *ptr;
}

/* This interface and version of the struct will be remove donce we have a new version of OSM on all
/* This interface and version of the struct will be removed once we have a new version of OSM on all
* instances
*/
static OsmCallbacks *
Expand Down
9 changes: 5 additions & 4 deletions tsl/test/expected/chunk_utils_internal.out
Original file line number Diff line number Diff line change
Expand Up @@ -924,10 +924,11 @@ SELECT ts_setup_osm_hook();
BEGIN;
SELECT drop_chunks('hyper_constr', 10::int);
NOTICE: hypertable_drop_chunks_hook
drop_chunks
-----------------------------
_timescaledb_internal.dummy
(1 row)
drop_chunks
------------------------------
_timescaledb_internal.dummy0
_timescaledb_internal.dummy1
(2 rows)

SELECT id, table_name FROM _timescaledb_catalog.chunk
where hypertable_id = (Select id from _timescaledb_catalog.hypertable where table_name = 'hyper_constr');
Expand Down
4 changes: 2 additions & 2 deletions tsl/test/src/test_chunk_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ osm_ht_drop_chunks_hook_mock(Oid osm_chunk_oid, const char *schema_name, const c
{
List *ret = NIL;
elog(NOTICE, "hypertable_drop_chunks_hook ");
for (int i = 1; i < 2; i++)
for (int i = 0; i < 2; i++)
{
char *chunk_name;
chunk_name = psprintf("%s", "_timescaledb_internal.dummy");
chunk_name = psprintf("%s%d", "_timescaledb_internal.dummy", i);
ret = lappend(ret, chunk_name);
}

Check warning on line 68 in tsl/test/src/test_chunk_stats.c

View check run for this annotation

Codecov / codecov/patch

tsl/test/src/test_chunk_stats.c#L68

Added line #L68 was not covered by tests
return ret;
Expand Down

0 comments on commit 644b58b

Please sign in to comment.