@@ -3389,7 +3389,9 @@ ts_chunk_set_name(Chunk *chunk, const char *newname)
3389
3389
{
3390
3390
FormData_chunk form ;
3391
3391
ItemPointerData tid ;
3392
- bool found = lock_chunk_tuple (chunk -> fd .id , & tid , & form );
3392
+ bool PG_USED_FOR_ASSERTS_ONLY found ;
3393
+
3394
+ found = lock_chunk_tuple (chunk -> fd .id , & tid , & form );
3393
3395
Assert (found );
3394
3396
3395
3397
namestrcpy (& form .table_name , newname );
@@ -3403,7 +3405,9 @@ ts_chunk_set_schema(Chunk *chunk, const char *newschema)
3403
3405
{
3404
3406
FormData_chunk form ;
3405
3407
ItemPointerData tid ;
3406
- bool found = lock_chunk_tuple (chunk -> fd .id , & tid , & form );
3408
+ bool PG_USED_FOR_ASSERTS_ONLY found ;
3409
+
3410
+ found = lock_chunk_tuple (chunk -> fd .id , & tid , & form );
3407
3411
Assert (found );
3408
3412
3409
3413
namestrcpy (& form .schema_name , newschema );
@@ -3484,7 +3488,9 @@ ts_chunk_clear_status(Chunk *chunk, int32 status)
3484
3488
3485
3489
FormData_chunk form ;
3486
3490
ItemPointerData tid ;
3487
- bool found = lock_chunk_tuple (chunk -> fd .id , & tid , & form );
3491
+ bool PG_USED_FOR_ASSERTS_ONLY found ;
3492
+
3493
+ found = lock_chunk_tuple (chunk -> fd .id , & tid , & form );
3488
3494
Assert (found );
3489
3495
3490
3496
/* applying the flags after locking the metadata tuple */
@@ -3515,7 +3521,9 @@ ts_chunk_add_status(Chunk *chunk, int32 status)
3515
3521
}
3516
3522
FormData_chunk form ;
3517
3523
ItemPointerData tid ;
3518
- bool found = lock_chunk_tuple (chunk -> fd .id , & tid , & form );
3524
+ bool PG_USED_FOR_ASSERTS_ONLY found ;
3525
+
3526
+ found = lock_chunk_tuple (chunk -> fd .id , & tid , & form );
3519
3527
Assert (found );
3520
3528
3521
3529
/* Somebody could update the status before we are able to lock it so check again */
@@ -3563,7 +3571,9 @@ ts_chunk_set_compressed_chunk(Chunk *chunk, int32 compressed_chunk_id)
3563
3571
3564
3572
FormData_chunk form ;
3565
3573
ItemPointerData tid ;
3566
- bool found = lock_chunk_tuple (chunk -> fd .id , & tid , & form );
3574
+ bool PG_USED_FOR_ASSERTS_ONLY found ;
3575
+
3576
+ found = lock_chunk_tuple (chunk -> fd .id , & tid , & form );
3567
3577
Assert (found );
3568
3578
3569
3579
/* Somebody could update the status before we are able to lock it so check again */
@@ -3611,7 +3621,9 @@ ts_chunk_clear_compressed_chunk(Chunk *chunk)
3611
3621
3612
3622
FormData_chunk form ;
3613
3623
ItemPointerData tid ;
3614
- bool found = lock_chunk_tuple (chunk -> fd .id , & tid , & form );
3624
+ bool PG_USED_FOR_ASSERTS_ONLY found ;
3625
+
3626
+ found = lock_chunk_tuple (chunk -> fd .id , & tid , & form );
3615
3627
Assert (found );
3616
3628
3617
3629
/* Somebody could update the status before we are able to lock it so check again */
0 commit comments