mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
Merge pull request #821 from ceph/port/missing-headers
add missing headers Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
commit
0c91576ef6
@ -12,6 +12,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "common/Mutex.h"
|
||||
#include "common/config.h"
|
||||
#include "common/debug.h"
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
#include <algorithm>
|
||||
|
||||
#include "auth/AuthMethodList.h"
|
||||
#include "auth/Crypto.h"
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
|
||||
#include "MonMap.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
Loading…
Reference in New Issue
Block a user