This website works better with JavaScript.
Home
Explore
帮助
返回水杉在线
登录水杉在线
登录水杉码园
building_data_management_systems.Xuanzhou.2024Fall.DaSE
/
leveldb_ttl
forked from
building_data_management_systems.Xuanzhou.2024Fall.DaSE/leveldb_base
Watch
23
Star
2
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Initialize Stats::start_ before first use in Stats::Start().
Avoids a use before initialization error. This fixes issue
#676
. PiperOrigin-RevId: 246855204
ld
Chris Mumford
5 years ago
parent
e22b1cec6e
commit
142035edd4
1 changed files
with
1 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-3
benchmarks/db_bench.cc
+ 1
- 3
benchmarks/db_bench.cc
View File
@ -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…
Cancel
Save