Skip to content

Commit 9762bdc

Browse files
committed
更新 rdb.c 的注释
1 parent 9d937d8 commit 9762bdc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rdb.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,6 +1575,7 @@ void startLoading(FILE *fp) {
15751575
}
15761576

15771577
/* Refresh the loading progress info */
1578+
// 刷新载入进度信息
15781579
void loadingProgress(off_t pos) {
15791580
server.loading_loaded_bytes = pos;
15801581
if (server.stat_peak_memory < zmalloc_used_memory())
@@ -1591,6 +1592,8 @@ void stopLoading(void) {
15911592

15921593
/* Track loading progress in order to serve client's from time to time
15931594
and if needed calculate rdb checksum */
1595+
// 记录载入进度信息,以便让客户端进行查询
1596+
// 这也会在计算 RDB 校验和时用到。
15941597
void rdbLoadProgressCallback(rio *r, const void *buf, size_t len) {
15951598
if (server.rdb_checksum)
15961599
rioGenericUpdateChecksum(r, buf, len);

0 commit comments

Comments
 (0)