@@ -3283,63 +3283,6 @@ int ha_federated::external_lock(THD *thd, int lock_type)
3283
3283
/*
3284
3284
Support for transactions disabled until WL#2952 fixes it.
3285
3285
*/
3286
- #ifdef XXX_SUPERCEDED_BY_WL2952
3287
- if (lock_type != F_UNLCK)
3288
- {
3289
- ha_federated *trx= (ha_federated *)thd_get_ha_data (thd, ht);
3290
-
3291
- DBUG_PRINT (" info" ,(" federated not lock F_UNLCK" ));
3292
- if (!(thd->options & (OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN)))
3293
- {
3294
- DBUG_PRINT (" info" ,(" federated autocommit" ));
3295
- /*
3296
- This means we are doing an autocommit
3297
- */
3298
- error= connection_autocommit (TRUE );
3299
- if (error)
3300
- {
3301
- DBUG_PRINT (" info" , (" error setting autocommit TRUE: %d" , error));
3302
- DBUG_RETURN (error);
3303
- }
3304
- trans_register_ha (thd, FALSE , ht);
3305
- }
3306
- else
3307
- {
3308
- DBUG_PRINT (" info" ,(" not autocommit" ));
3309
- if (!trx)
3310
- {
3311
- /*
3312
- This is where a transaction gets its start
3313
- */
3314
- error= connection_autocommit (FALSE );
3315
- if (error)
3316
- {
3317
- DBUG_PRINT (" info" , (" error setting autocommit FALSE: %d" , error));
3318
- DBUG_RETURN (error);
3319
- }
3320
- thd_set_ha_data (thd, ht, this );
3321
- trans_register_ha (thd, TRUE , ht);
3322
- /*
3323
- Send a lock table to the remote end.
3324
- We do not support this at the moment
3325
- */
3326
- if (thd->options & (OPTION_TABLE_LOCK))
3327
- {
3328
- DBUG_PRINT (" info" , (" We do not support lock table yet" ));
3329
- }
3330
- }
3331
- else
3332
- {
3333
- ha_federated *ptr;
3334
- for (ptr= trx; ptr; ptr= ptr->trx_next )
3335
- if (ptr == this )
3336
- break ;
3337
- else if (!ptr->trx_next )
3338
- ptr->trx_next = this ;
3339
- }
3340
- }
3341
- }
3342
- #endif /* XXX_SUPERCEDED_BY_WL2952 */
3343
3286
DBUG_RETURN (error);
3344
3287
}
3345
3288
0 commit comments