上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页
摘要: # datasourcespring.datasource.url=jdbc:mysql://127.0.0.1:3306/springboot-springdatajpa01?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&us 阅读全文
posted @ 2019-08-06 19:32 李艳艳665 阅读(100) 评论(0) 推荐(0)
摘要: n_noredo_created = trx_sys_create_noredo_rsegs(n_tmp_rsegs); //创建 32个 临时rollback segments我们这里不准备考虑临时rollback segments 建立 95个(33-128) 普通rollback segmen 阅读全文
posted @ 2019-08-06 19:32 李艳艳665 阅读(224) 评论(0) 推荐(0)
摘要: sys_header = trx_sysf_get(mtr); //获取 5号 block指针 跳过 FIL_PAGE_DATA 38U trx_sysf_rseg_set_space(sys_header, rseg_slot_no, space, mtr); //设置space trx_sysf 阅读全文
posted @ 2019-08-06 19:32 李艳艳665 阅读(235) 评论(0) 推荐(0)
摘要: 为了让图更加美观和好理解,我这里使用的是innodb_undo_tablespaces=2的情况下作图,也就是只有2个 undo tablespace的情况。其实4个也是同样的道理,因为rollback segment slot是轮询在表空间分配的。 640?wx_fmt=jpeg undo phy 阅读全文
posted @ 2019-08-06 19:32 李艳艳665 阅读(69) 评论(0) 推荐(0)
摘要: 之前的例子代码只是测试代码,只是为了说明原理,例子本身很简单,所以有一些考虑不周的地方。比如当获取到锁之后在业务操作执行过程中发生了环境问题导致断开了和Redis的连接,那就无法在finally块中释放锁,导致其他等待获取锁的线程无限等待下去,也就是发生了死锁现象。 解决方式: 可以在Redis中给 阅读全文
posted @ 2019-08-06 19:31 李艳艳665 阅读(328) 评论(0) 推荐(0)
摘要: 本过程调用函数srv_undo_tablespaces_init进行,栈帧如下: #0 srv_undo_tablespaces_init (create_new_db=true, n_conf_tablespaces=4, n_opened=0x2ef55b0) at /root/mysqlc/p 阅读全文
posted @ 2019-08-06 19:31 李艳艳665 阅读(181) 评论(0) 推荐(0)
摘要: 本步骤调用 trx_sys_create_sys_pages->trx_sysf_create进行,本步骤除了初始化transaction system segment以外还会初始化其header( ibdata page no 5)信息如下: /* Create the trx sys file 阅读全文
posted @ 2019-08-06 19:31 李艳艳665 阅读(186) 评论(0) 推荐(0)
摘要: 调用 trx_sys_create_rsegs进行: 说明一下关于innodb_undo_logs参数和innodb_rollback_segments参数,他们作用就是设置rollback segment 的个数,本文以128为例。 根据注释和代码innodb_undo_logs已经是个淘汰的参数 阅读全文
posted @ 2019-08-06 19:31 李艳艳665 阅读(145) 评论(0) 推荐(0)
摘要: using SDHK_Tool.Dynamic; private SD_Motor_Angle Motor_Angle; //旋转电机 public bool Motor = true; //电机激活 public float Speed = 100; //电机速度 public float Ang 阅读全文
posted @ 2019-08-05 18:39 李艳艳665 阅读(126) 评论(0) 推荐(0)
摘要: 使用例子: using SDHK_Tool.Dynamic; private SD_Motor_Angle Motor_Angle; //旋转电机 public float Speed = 1; //旋转速度 public float Angle = 0; //当前角度 public float T 阅读全文
posted @ 2019-08-05 18:39 李艳艳665 阅读(140) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页