From b6fb493a9c600f7094f924ce84dba2616104ed7c Mon Sep 17 00:00:00 2001 From: gayyappan Date: Tue, 19 Sep 2023 12:52:29 -0400 Subject: [PATCH] mod --- src/osm_callbacks.c | 2 +- tsl/test/src/test_chunk_stats.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osm_callbacks.c b/src/osm_callbacks.c index dafaf67abdc..c072ad237c9 100644 --- a/src/osm_callbacks.c +++ b/src/osm_callbacks.c @@ -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 * diff --git a/tsl/test/src/test_chunk_stats.c b/tsl/test/src/test_chunk_stats.c index 6435aff656b..1a815b05173 100644 --- a/tsl/test/src/test_chunk_stats.c +++ b/tsl/test/src/test_chunk_stats.c @@ -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); } return ret;