8000 fix issues (#9236) · reynoldsm88/arangodb@63eadb1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 63eadb1

Browse files
authored
fix issues (arangodb#9236)
1 parent 98e9197 commit 63eadb1

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

arangod/Cluster/ClusterCollectionCreationInfo.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
////////////////////////////////////////////////////////////////////////////////
2222

2323
#include "ClusterCollectionCreationInfo.h"
24+
#include "Basics/StaticStrings.h"
25+
#include "Basics/VelocyPackHelper.h"
2426

25-
#include <velocypack/Builder.h>
2627
#include <velocypack/Collection.h>
27-
#include <velocypack/Slice.h>
2828
#include <velocypack/velocypack-aliases.h>
2929

3030
arangodb::ClusterCollectionCreationInfo::ClusterCollectionCreationInfo(
@@ -53,7 +53,7 @@ arangodb::ClusterCollectionCreationInfo::ClusterCollectionCreationInfo(
5353
}
5454
}
5555

56-
VPackSlice const arangodb::ClusterCollectionCreationInfo::isBuildingSlice() const {
56+
VPackSlice arangodb::ClusterCollectionCreationInfo::isBuildingSlice() const {
5757
if (needsBuildingFlag()) {
5858
return _isBuildingJson.slice();
5959
}
@@ -63,4 +63,4 @@ VPackSlice const arangodb::ClusterCollectionCreationInfo::isBuildingSlice() cons
6363
bool arangodb::ClusterCollectionCreationInfo::needsBuildingFlag() const {
6464
return numberOfShards > 0 ||
6565
arangodb::basics::VelocyPackHelper::getBooleanValue(json, StaticStrings::IsSmart, false);
66-
}
66+
}

arangod/Cluster/ClusterCollectionCreationInfo.h

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@
2121
////////////////////////////////////////////////////////////////////////////////
2222

2323
#ifndef ARANGOD_CLUSTER_CLUSTER_COLLECTION_CREATION_INFO_H
24-
#define ARANGOD_CLUSTER_CLUSTER_COLLECTION_CREATION__INFO_H 1
24+
#define ARANGOD_CLUSTER_CLUSTER_COLLECTION_CREATION_INFO_H 1
2525

2626
#include "Basics/Common.h"
2727

28-
#include "Basics/StaticStrings.h"
29-
#include "Basics/VelocyPackHelper.h"
30-
28+
#include <velocypack/Builder.h>
3129
#include <velocypack/Slice.h>
3230

3331
namespace arangodb {
@@ -45,15 +43,15 @@ struct ClusterCollectionCreationInfo {
4543
std::string name;
4644
State state;
4745

48-
public:
49-
velocypack::Slice const isBuildingSlice() const;
50-
46+
public:
47+
velocypack::Slice isBuildingSlice() const;
48+
5149
private:
50+
bool needsBuildingFlag() const;
5251

52+
private:
5353
velocypack::Builder _isBuildingJson;
54-
private:
55-
bool needsBuildingFlag() const;
5654
};
5755
} // namespace arangodb
5856

59-
#endif
57+
#endif

0 commit comments

Comments
 (0)
0