We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d937d8 commit 9762bdcCopy full SHA for 9762bdc
src/rdb.c
@@ -1575,6 +1575,7 @@ void startLoading(FILE *fp) {
1575
}
1576
1577
/* Refresh the loading progress info */
1578
+// 刷新载入进度信息
1579
void loadingProgress(off_t pos) {
1580
server.loading_loaded_bytes = pos;
1581
if (server.stat_peak_memory < zmalloc_used_memory())
@@ -1591,6 +1592,8 @@ void stopLoading(void) {
1591
1592
1593
/* Track loading progress in order to serve client's from time to time
1594
and if needed calculate rdb checksum */
1595
+// 记录载入进度信息,以便让客户端进行查询
1596
+// 这也会在计算 RDB 校验和时用到。
1597
void rdbLoadProgressCallback(rio *r, const void *buf, size_t len) {
1598
if (server.rdb_checksum)
1599
rioGenericUpdateChecksum(r, buf, len);
0 commit comments