Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4120864

Browse files
committed
Change transaction state debug strings to match enum symbols
In some cases, these were different for no apparent reason, making debugging unnecessarily mysterious. Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
1 parent 8114885 commit 4120864

File tree

1 file changed

+12
-12
lines changed
  • src/backend/access/transam

1 file changed

+12
-12
lines changed

src/backend/access/transam/xact.c

+12-12
Original file line numberDiff line numberDiff line change
@@ -5144,29 +5144,29 @@ BlockStateAsString(TBlockState blockState)
51445144
case TBLOCK_ABORT:
51455145
return "ABORT";
51465146
case TBLOCK_ABORT_END:
5147-
return "ABORT END";
5147+
return "ABORT_END";
51485148
case TBLOCK_ABORT_PENDING:
5149-
return "ABORT PEND";
5149+
return "ABORT_PENDING";
51505150
case TBLOCK_PREPARE:
51515151
return "PREPARE";
51525152
case TBLOCK_SUBBEGIN:
5153-
return "SUB BEGIN";
5153+
return "SUBBEGIN";
51545154
case TBLOCK_SUBINPROGRESS:
5155-
return "SUB INPROGRS";
5155+
return "SUBINPROGRESS";
51565156
case TBLOCK_SUBRELEASE:
5157-
return "SUB RELEASE";
5157+
return "SUBRELEASE";
51585158
case TBLOCK_SUBCOMMIT:
5159-
return "SUB COMMIT";
5159+
return "SUBCOMMIT";
51605160
case TBLOCK_SUBABORT:
5161-
return "SUB ABORT";
5161+
return "SUBABORT";
51625162
case TBLOCK_SUBABORT_END:
5163-
return "SUB ABORT END";
5163+
return "SUBABORT_END";
51645164
case TBLOCK_SUBABORT_PENDING:
5165-
return "SUB ABRT PEND";
5165+
return "SUBABORT_PENDING";
51665166
case TBLOCK_SUBRESTART:
5167-
return "SUB RESTART";
5167+
return "SUBRESTART";
51685168
case TBLOCK_SUBABORT_RESTART:
5169-
return "SUB AB RESTRT";
5169+
return "SUBABORT_RESTART";
51705170
}
51715171
return "UNRECOGNIZED";
51725172
}
@@ -5185,7 +5185,7 @@ TransStateAsString(TransState state)
51855185
case TRANS_START:
51865186
return "START";
51875187
case TRANS_INPROGRESS:
5188-
return "INPROGR";
5188+
return "INPROGRESS";
51895189
case TRANS_COMMIT:
51905190
return "COMMIT";
51915191
case TRANS_ABORT:

0 commit comments

Comments
 (0)