Skip to content

Commit

Permalink
Allow all socksql, recom, snapisol & serial
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Hannum <[email protected]>
  • Loading branch information
markhannum committed Sep 13, 2024
1 parent d628301 commit 5444205
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/toblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -2981,6 +2981,7 @@ static int toblock_main_int(struct javasp_trans_state *javasp_trans_handle, stru
const uint8_t *p_buf_in_saved;
int got_blockseq = 0;
int got_osql = 0;
int is_tagged = 1;

/* this is a pre-loop, we want to jump back to the begining after it's
* done */
Expand Down Expand Up @@ -3044,6 +3045,7 @@ static int toblock_main_int(struct javasp_trans_state *javasp_trans_handle, stru
/* fall-through */
case BLOCK2_SNAPISOL:
case BLOCK2_SERIAL:
is_tagged = 0;
if (gbl_use_blkseq) {
have_blkseq = 1;
osql_bplog_set_blkseq(iq->sorese, iq);
Expand Down Expand Up @@ -3125,7 +3127,7 @@ static int toblock_main_int(struct javasp_trans_state *javasp_trans_handle, stru
gbl_blockop_name_xrefs[opnum]);
}
}
if (!got_osql && gbl_disable_tagged_api_writes) {
if (is_tagged && gbl_disable_tagged_api_writes) {
logmsg(LOGMSG_ERROR, "Rejecting tagged api request\n");
outrc = ERR_BADREQ;
fromline = __LINE__;
Expand Down

0 comments on commit 5444205

Please sign in to comment.