Skip to content

Commit

Permalink
Remove unused parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Akshat Sikarwar <[email protected]>
  • Loading branch information
akshatsikarwar committed Dec 19, 2024
1 parent 6fad0d4 commit c3585fb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion db/comdb2.h
Original file line number Diff line number Diff line change
Expand Up @@ -2920,7 +2920,7 @@ enum {

struct sql_thread *start_sql_thread(void);
struct sqlclntstate;
int initialize_shadow_trans(struct sqlclntstate *, struct sql_thread *thd);
int initialize_shadow_trans(struct sqlclntstate *);
void get_current_lsn(struct sqlclntstate *clnt);
void done_sql_thread(void);
int sql_debug_logf(struct sqlclntstate *clnt, const char *func, int line,
Expand Down
2 changes: 1 addition & 1 deletion db/fdb_bend_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ int fdb_svc_trans_begin(char *tid, enum transaction_level lvl, int flags, int se
__func__, us);
}

if ((rc = initialize_shadow_trans(clnt, thd)) != 0)
if ((rc = initialize_shadow_trans(clnt)) != 0)
return rc;

if (clnt->dbtran.mode == TRANLEVEL_SOSQL && !clnt->osql.sock_started)
Expand Down
2 changes: 1 addition & 1 deletion db/sql.h
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@ int fdb_access_control_create(struct sqlclntstate *, char *str);
int disable_server_sql_timeouts(void);
int osql_clean_sqlclntstate(struct sqlclntstate *);
void handle_failed_dispatch(struct sqlclntstate *, char *err);
int start_new_transaction(struct sqlclntstate *, struct sql_thread *);
int start_new_transaction(struct sqlclntstate *);
int sqlite3LockStmtTablesRecover(sqlite3_stmt *);

struct sql_col_info {
Expand Down
10 changes: 5 additions & 5 deletions db/sqlglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -4683,7 +4683,7 @@ int get_snapshot(struct sqlclntstate *clnt, int *f, int *o)
return clnt->plugin.get_snapshot(clnt, f, o);
}

int initialize_shadow_trans(struct sqlclntstate *clnt, struct sql_thread *thd)
int initialize_shadow_trans(struct sqlclntstate *clnt)
{
int rc = SQLITE_OK;
struct ireq iq;
Expand Down Expand Up @@ -4801,7 +4801,7 @@ int initialize_shadow_trans(struct sqlclntstate *clnt, struct sql_thread *thd)
return rc;
}

int start_new_transaction(struct sqlclntstate *clnt, struct sql_thread *thd)
int start_new_transaction(struct sqlclntstate *clnt)
{
int rc;

Expand Down Expand Up @@ -4847,7 +4847,7 @@ int start_new_transaction(struct sqlclntstate *clnt, struct sql_thread *thd)
pthread_self(), clnt->dbtran.mode, clnt->intrans);
}
#endif
if ((rc = initialize_shadow_trans(clnt, thd)) != 0) {
if ((rc = initialize_shadow_trans(clnt)) != 0) {
sql_debug_logf(clnt, __func__, __LINE__,
"initialize_shadow_tran returns %d\n", rc);
return rc;
Expand Down Expand Up @@ -4990,7 +4990,7 @@ int sqlite3BtreeBeginTrans(Vdbe *vdbe, Btree *pBt, int wrflag, int *pSchemaVersi
clnt->dbtran.mode = TRANLEVEL_RECOM;
}

rc = start_new_transaction(clnt, thd);
rc = start_new_transaction(clnt);

/* 2pc on tunable, only here for now */
extern int gbl_2pc;
Expand Down Expand Up @@ -8840,7 +8840,7 @@ static int chunk_transaction(BtCursor *pCur, struct sqlclntstate *clnt,
goto done;
}

rc = start_new_transaction(clnt, thd);
rc = start_new_transaction(clnt);

if (thd->bt) {
LISTC_FOR_EACH(&thd->bt->cursors, cur, lnk)
Expand Down
2 changes: 1 addition & 1 deletion lua/sp.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ static int dbconsumer_consume(Lua L)
}
}
if (!clnt->intrans) {
if ((rc = start_new_transaction(clnt, clnt->thd->sqlthd)) != 0) {
if ((rc = start_new_transaction(clnt)) != 0) {
luaL_error(L, "%s: start_new_transaction intrans:%d err:%s rc:%d\n",
__func__, clnt->intrans, err, rc);
}
Expand Down

0 comments on commit c3585fb

Please sign in to comment.