Actions
Bug #13206
closedOSD::do_recovery() local variable "started" shall be explicitly initialized to zero
Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
void OSD::do_recovery(PG *pg, ThreadPool::TPHandle &handle)
int started;
bool more = pg->start_recovery_ops(max, &rctx, handle, &started);
See above, the local variable 'started' is not explicitly initialized to zero before it is passed into pg->start_recovery_ops(),
thus the initial value of "started" is completed determined by the compiler and the pg->start_recovery_ops() may don't work as it
is supposed to be.
Updated by Sage Weil over 8 years ago
- Status changed from New to Fix Under Review
Updated by Sage Weil over 8 years ago
- Status changed from Fix Under Review to Resolved
Actions