Results 10 issues of ywgrit

您好,您的这个项目非常值得我学习,多线程安全和C++关键语法都有涉及,并且用模板元编程实现了跳表,提高了复用性。只是我初学C++不久,对于代码,有几处不太理解,希望能得到您的帮助,万分感谢 以下是我的两点疑问 - 您的代码中,使用了多张哈希表、多个索引文件、多个活跃的数据文件。但是只有在recover的时候用到了多线程,请问这样做的目的是什么呢?另外bitcask模型似乎是只能有一个活跃的数据文件,使用多个的话,会有影响吗? - 在代码中,有一处我并未看明白 ```cpp bool PosixFile::Read(uint64_t offset, uint32_t n, char* buf) { if (offset > file_offset_) {//请问这是什么意思呢?按照我的理解,要正常插入数据和索引文件的话,应该需要offset和file_offset一致对吗?因为bitcask是顺序读写,数据应该插入到文件末尾。为什么两者不相等之后,都还能插入呢? uint32_t pos = offset - file_offset_; if (pos > map_size_)...

你好,请问为什么没实现内存池呢?是考虑到了性能原因吗?我想往里面加内存池,请有什么建议或提醒吗?

您好,**在小型工程中,coc是能够正常使用的**,但是我最近编译linux内核和oceanbase,coc总是找不到定义和引用。我并未修改过coc.nvim.vim,目前我检查了ccls的配置和coc的配置,未发现错误,我使用bear命令生成的compile_commands.json文件也是对的,请问我应该怎么排查这个错误呢?谢谢 目前我的coc-settting.json文件如下所示 { // vim: syntax=jsonc "coc.preferences.extensionUpdateCheck": "daily", "suggest.acceptSuggestionOnCommitCharacter": true, "suggest.timeout": 5000, "suggest.noselect": true, "suggest.snippetIndicator": "❄", "suggest.completionItemKindLabels": { "class": "", "color": "", "constant": "", "default": "", "enum": "", "enumMember": "",...

Hi. I encountered an error in the last step, i.e. "cargo pgrx install": Compiling linfa-logistic v0.7.0 (/home/wx/qp/tp/investigate/pgml/postgresml/pgml-extension/deps/linfa/algorithms/linfa-logistic) error[E0277]:Trait binding `argmin_param::ArgminParam: serde::ser::Serialize` not satisfied --> deps/linfa/algorithms/linfa-logistic/src/lib.rs:830:19 | 830 | type Solver...

help

Hi, thank you for the convenience brought by this tool to my debugging experience. It is really useful! I find something was wrong when gdb run "layout [src|asm|}regs|split|next|prev]". The specific...

bug
help wanted

没有CMakeLists,txt,cmake .没法执行

Hi, thank you for the convenience brought by this tool to my debugging experience. It is really useful! Is there any possible to add auto-suggestion like oh-my-zsh to these script?...

**Describe the bug** A clear and concise description of what the bug is. I build the gcc from gnu with some code changed. Without bear, the build process succeed. With...