mirror of
https://github.com/ceph/ceph
synced 2025-03-20 01:07:42 +00:00
crush: add mising header for count
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
parent
a10345a552
commit
e9880cfc1e
@ -1,6 +1,7 @@
|
||||
|
||||
#include "CrushTester.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
@ -203,7 +204,7 @@ bool CrushTester::check_valid_placement(int ruleno, vector<int> in, const vector
|
||||
|
||||
// check that we don't have any duplicate id's
|
||||
for (vector<int>::iterator it = included_devices.begin(); it != included_devices.end(); ++it) {
|
||||
int num_copies = count(included_devices.begin(), included_devices.end(), (*it) );
|
||||
int num_copies = std::count(included_devices.begin(), included_devices.end(), (*it) );
|
||||
if (num_copies > 1) {
|
||||
valid_placement = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user