Skip to content

Commit 37ddc1f

Browse files
committed
Use reference for iterating histogram Bins
* unique_ptr doesn't allow copying its pointer to outside. It causes compilation failure of CV. Change-Id: I4d5335d486cc82558a60a103ee93540685b23dd6 Reviewed-on: http://review.couchbase.org/75099 Reviewed-by: Sundararaman Sridharan <sundar@couchbase.com> Tested-by: Jung-Sang Ahn <jungsang.ahn@gmail.com>
1 parent 8b80f88 commit 37ddc1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/filemgr.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4066,7 +4066,7 @@ void LatencyStats::getHistogram(FileMgr *file,
40664066
}
40674067
std::stringstream ss;
40684068
ss << "{";
4069-
for (auto it : file->histStats[type]) {
4069+
for (auto& it : file->histStats[type]) {
40704070
if (it->count()) {
40714071
ss << "(" << it->start() << "µs - " << it->end() << "µs) : ";
40724072
ss << it->count() << "; ";

0 commit comments

Comments
 (0)