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

Commit 073d5ae

Browse files
author
Vladimir Ershov
committed
fix syntax:
1 parent c70740a commit 073d5ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/scheduler_executor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,12 @@ int executor_onrollback(MemoryContext mem, job_t *job, executor_error_t *ee)
499499
{
500500
if(r->error)
501501
{
502-
if(push_executor_error(ee, "onrollback error: %s", r->error)) < 0)
502+
if(push_executor_error(ee, "onrollback error: %s", r->error) < 0)
503503
return -14000;
504504
}
505505
else
506506
{
507-
if(push_executor_error(ee, "onrollback error: unknown: %d", r->retval)) < 0)
507+
if(push_executor_error(ee, "onrollback error: unknown: %d", r->retval) < 0)
508508
return -14000;
509509
}
510510
ABORT_SPI_SNAP();

src/scheduler_spi_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ spi_response_t *__error_spi_resp(MemoryContext ctx, int ret, char *error)
8282
r->rows = NULL;
8383
r->ref = NULL;
8484
r->error = _mcopy_string(ctx, error);
85-
if(!(r->error) return NULL;
85+
if(!(r->error)) return NULL;
8686

8787
return r;
8888
}

0 commit comments

Comments
 (0)