From a9c87556c0d117d9d7d5b882479f529226d74fd6 Mon Sep 17 00:00:00 2001 From: Richard Hua Date: Wed, 17 Apr 2024 13:37:49 -0700 Subject: [PATCH] Reorder operations for clarity --- pkg/identity/api/v1/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/identity/api/v1/service.go b/pkg/identity/api/v1/service.go index 09c5e276..9cfe851e 100644 --- a/pkg/identity/api/v1/service.go +++ b/pkg/identity/api/v1/service.go @@ -67,11 +67,11 @@ Start transaction (SERIALIZABLE isolation level) 2. If the log has 256 or more entries, abort the transaction. 3. Concatenate the update in-memory and validate it sequentially. If failed, abort the transaction. - 4. For each affected address: + 4. Insert the update into the inbox_log table + 5. For each affected address: a. Insert or update the record with (address, inbox_id) into the address_log table, updating the relevant sequence_id (it should always be higher) - 5. Insert the update into the inbox_log table End transaction */