This website works better with JavaScript.
首頁
探索
帮助
返回水杉在线
登录水杉在线
登录水杉码园
building_data_management_systems.Xuanzhou.2024Fall.DaSE
/
XOY-Leveldb
關註
23
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Initialize Stats::start_ before first use in Stats::Start().
Avoids a use before initialization error. This fixes issue
#676
. PiperOrigin-RevId: 246855204
master
Chris Mumford
5 年之前
父節點
e22b1cec6e
當前提交
142035edd4
共有
1 個文件被更改
,包括
1 次插入
和
3 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-3
benchmarks/db_bench.cc
+ 1
- 3
benchmarks/db_bench.cc
查看文件
@ -187,14 +187,12 @@ class Stats {
void
Start
(
)
{
next_report_
=
100
;
last_op_finish_
=
start_
;
hist_
.
Clear
(
)
;
done_
=
0
;
bytes_
=
0
;
seconds_
=
0
;
start_
=
g_env
-
>
NowMicros
(
)
;
finish_
=
start_
;
message_
.
clear
(
)
;
start_
=
finish_
=
last_op_finish_
=
g_env
-
>
NowMicros
(
)
;
}
void
Merge
(
const
Stats
&
other
)
{
Write
Preview
Loading…
取消
儲存