diff --git a/_posts/2017-09-14-googletest-usage.md b/_posts/2017-09-14-googletest-usage.md index b351ddc..d804535 100644 --- a/_posts/2017-09-14-googletest-usage.md +++ b/_posts/2017-09-14-googletest-usage.md @@ -9,6 +9,18 @@ tags : [gtest, gmock ,c++] 有一个玩转GoogleTest的文章讲的不错,值得花点时间看下 + + + +## 指定测试捕获catch + +```gdb +gdb /path/to/test +catch throw +r --gtest_filter='Test.Testcase' --gmock_verbose=info +bt +``` + ## 一些使用方法 最近使用googletest,新加了单元测试,就需要判定开关单元测试对原来测试的影响,做个记录 diff --git a/_posts/2020-08-02-folly.md b/_posts/2020-08-02-folly.md index bc2f535..89b736b 100644 --- a/_posts/2020-08-02-folly.md +++ b/_posts/2020-08-02-folly.md @@ -85,6 +85,11 @@ auto rand = folly::Random::rand32(min, max, rng); 没啥说的 ---- +- folly::IndexedMemPool + +小对象池子 https://github.com/facebook/folly/blob/main/folly/IndexedMemPool.h + +- folly::AccessSpreader +暗示这个地址是这个线程独享的,降低竞争 \ No newline at end of file diff --git a/_posts/2021-06-08-blog-review-7.md b/_posts/2021-06-08-blog-review-7.md index 8c5f70c..02d50cf 100644 --- a/_posts/2021-06-08-blog-review-7.md +++ b/_posts/2021-06-08-blog-review-7.md @@ -431,6 +431,39 @@ https://github.com/DigitalChinaOpenSource/TiDB-for-PostgreSQL https://github.com/baidu/braft.git braft的文档值得读一下 + +braft todo + +braft + +https://wine93.gitbook.io/learn-raft/ch06/change_leader + +curve https://my.oschina.net/u/4565392/blog/5519430 +https://zhuanlan.zhihu.com/p/333884273 +https://zhuanlan.zhihu.com/p/505366980 +https://zhuanlan.zhihu.com/p/336674195 +https://yriuns.github.io/2022/01/08/braft-in-action/ + +https://zhuanlan.zhihu.com/p/169840204 + +https://zhuanlan.zhihu.com/p/169904153 + +把braft 知乎文章看一遍 + +https://github.sheincorp.cn/baidu/braft/issues/ 332 有bug? + +https://steinslab.io/archives/2605 metric +https://luobuda.github.io/2023/01/07/Work-Review/ +https://luobuda.github.io/2022/02/15/braft-snapshot%E5%AE%9E%E7%8E%B0/ +https://blog.csdn.net/qq_35102066/article/details/122832550 +问题,如果关闭周期性snapshot,什么时候truncate日志呢?无限膨胀? + +https://zhuanlan.zhihu.com/p/690232462 +https://zhuanlan.zhihu.com/p/639480562 +https://github.com//kasshu/braft-docs/blob/master/cn/Braft%20detailed%20explanation.md + +https://illx10000.github.io/2018/12/29/6.html brpc iobuf + https://github.com/afiodorov/radixmmap 用c++实现一下 https://github.com/stateright/stateright 一致性教研工具,原理是什么?