Skip to content

Commit 036e406

Browse files
andrewgithubandrewgithub
andrewgithub
authored and
andrewgithub
committed
添加必要的日志说明
1 parent ca9a901 commit 036e406

File tree

10 files changed

+377
-506
lines changed

10 files changed

+377
-506
lines changed

NEWS

Lines changed: 0 additions & 17 deletions
This file was deleted.

TODO

Lines changed: 0 additions & 14 deletions
This file was deleted.

demo/leveldb_exec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int main(int argc, char *argv[]) {
2424

2525
auto s = db->Put(leveldb::WriteOptions(), key1, value);
2626

27-
for (int i = 0; i < 1000; ++i) {
27+
for (int i = 0; i < 100; ++i) {
2828
std::string key = to_string(i);
2929
std::string valStr = to_string(i + 2);
3030
s = db->Put(leveldb::WriteOptions(), key, valStr);

doc/benchmark.html

Lines changed: 0 additions & 459 deletions
This file was deleted.

doc/table_format.md renamed to doc/db/table_format.adoc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
2+
3+
4+
:toc:
5+
6+
:icons: font
7+
8+
// 保证所有的目录层级都可以正常显示图片
9+
:path: persistence/
10+
:imagesdir: ../image/
11+
:srcdir: ../src
12+
13+
14+
// 只有book调用的时候才会走到这里
15+
ifdef::rootpath[]
16+
:imagesdir: {rootpath}{path}{imagesdir}
17+
:srcdir: {rootpath}../src/
18+
endif::rootpath[]
19+
20+
ifndef::rootpath[]
21+
:rootpath: ../
22+
:srcdir: {rootpath}{path}../src/
23+
endif::rootpath[]
24+
25+
126
leveldb File format
227
===================
328

@@ -105,3 +130,4 @@ TODO(postrelease): record following stats.
105130
value size (uncompressed)
106131
number of entries
107132
number of data blocks
133+

doc/index.md renamed to doc/index.adoc

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
2+
:footnote:
3+
4+
:toc:
5+
6+
:rootpath: ./
7+
8+
// 整个文档保留换行符
9+
:hardbreaks:
10+
11+
= levelDB
12+
13+
[quote, 王亚周, wangyazhoujy@gmail.com 564631192@qq.com]
14+
____
15+
勿在浮沙筑高台,莫于深渊思未来;
16+
不为繁华易匠心,初心不舍梦自来。
17+
____
18+
19+
Wechat official account : 码上有话
20+
21+
v0.1, 2023-8-27
22+
23+
:homepage: https://asciidoctor.org
24+
25+
126
leveldb
227
=======
328
@@ -521,3 +546,65 @@ documents:
521546
1. [Implementation notes](impl.md)
522547
2. [Format of an immutable Table file](table_format.md)
523548
3. [Format of a log file](log_format.md)
549+
550+
551+
552+
553+
== instruction
554+
555+
include::instruction/readme.adoc[readme]
556+
include::instruction/impl.adoc[impl]
557+
558+
== persistent
559+
560+
include::persistence/log_format.adoc[log_format]
561+
562+
563+
564+
565+
566+
567+
include::C++知识点总结/C++常见知识点.adoc[C++常见知识点总结]
568+
569+
include::C++知识点总结/常用编程语句.adoc[常用编程语句]
570+
include::C++知识点总结/模板编程.adoc[模板编程]
571+
572+
573+
== 网络
574+
include::网络/tcpdump.adoc[tcpdump]
575+
include::网络/HTTP.adoc[HTTP]
576+
include::网络/epoll.adoc[epoll]
577+
include::网络/QUIC.adoc[quic]
578+
include::网络/wireshark.adoc[wireshark]
579+
include::网络/tcp.adoc[tcp]
580+
include::网络/深入理解Linux网络.adoc[深入理解Linux网络]
581+
include::网络/网络常见知识点.adoc[网络常见知识点]
582+
583+
584+
== 分布式
585+
include::分布式/etcd.adoc[etcd]
586+
587+
== 数据库
588+
include::数据库/db_tutorial.adoc[db_tutorial]
589+
590+
== Linux
591+
592+
include::Linux/Linux二进制分析.adoc[linux]
593+
include::Linux/高性能相关.adoc[高性能相关]
594+
include::Linux/linux_command.adoc[command]
595+
include::Linux/Linux系统编程.adoc[linux系统编程]
596+
include::Linux/操作系统.adoc[操作系统]
597+
include::Linux/深入理解Linux内核.adoc[深入理解Linux内核]
598+
599+
== RPC
600+
include::RPC/RPC.adoc[RPC]
601+
602+
== utils
603+
604+
include::utils/git.adoc[git]
605+
606+
607+
608+
609+
610+

doc/impl.md renamed to doc/instruction/impl.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
3+
4+
15
## Files
26

37
The implementation of leveldb is similar in spirit to the representation of a
@@ -170,3 +174,4 @@ So maybe even the sharding is not necessary on modern filesystems?
170174
of recovery. It finds the names of all files in the database. It deletes all log
171175
files that are not the current log file. It deletes all table files that are not
172176
referenced from some level and are not the output of an active compaction.
177+

0 commit comments

Comments
 (0)