Skip to content

Commit

Permalink
clean up from testing
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Nelson <jesse@swirldslabs.com>
  • Loading branch information
jnels124 committed Apr 25, 2024
1 parent b10f022 commit 3af0b5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ASYNC_TABLE_SPLITS=
CONCURRENCY=
CONCURRENT_COPIES_PER_TABLE=
CREATE_IDEXES_BEFORE_MIGRATION=
EXCLUDED_TABLES=("'entity_state_start'","'entity_transaction'","'flyway_schema_history'","'transaction_hash'","'topic_message'")
EXCLUDED_TABLES=("'entity_state_start'","'entity_transaction'","'flyway_schema_history'","'transaction_hash'")
FLYWAY_URL=https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/9.22.3/flyway-commandline-9.22.3-linux-x64.tar.gz
MAX_TIMESTAMP=
SOURCE_DB_HOST=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ migrateTableBinary() {
fi

local where
if [[ "${table}" != "topic_message" && "${columns}" =~ $TS_COLUMN_REGEX ]]; then
if [[ "${columns}" =~ $TS_COLUMN_REGEX ]]; then
where="where consensus_timestamp \<= ${MAX_TIMESTAMP}"
# handle address book.
elif [[ "${columns}" =~ \<consensus_timestamp_start\> ]]; then
Expand Down Expand Up @@ -202,9 +202,10 @@ migrateTableAsyncBinary() {
else
upperOperator="<"
fi

local where
if [[ -z "${cursor_lower_bound}" ]]; then
where="where consensus_timestamp \<= ${cursor_upper_bound}"
where="where consensus_timestamp \\${upperOperator} ${cursor_upper_bound}"
else
where="where consensus_timestamp \\${upperOperator} ${cursor_upper_bound} and consensus_timestamp \\${lowerOperator} ${cursor_lower_bound}"
fi
Expand Down Expand Up @@ -353,7 +354,6 @@ ASYNC_TABLES=$(echo "${ASYNC_TABLES//[\']/}" | tr "," "\n")

declare tablesArray
IFS=" " readarray -t tablesArray <<< "${TABLES}"
tablesArray+=("topic_message")
tablesArray+=("${ASYNC_TABLES[@]}")

COUNT="${#tablesArray[@]}"
Expand Down

0 comments on commit 3af0b5e

Please sign in to comment.