File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ namespace {
4242// We use that value to represent the largest number of path components we could ever possibly
4343// expect to see in an indexed field.
4444const size_t kMaxKeyPatternPathLength = 2048 ;
45- char multikeyPathsEncodedAsBytes[kMaxKeyPatternPathLength ];
4645
4746/* *
4847 * Encodes 'multikeyPaths' as binary data and appends it to 'bob'.
@@ -54,6 +53,8 @@ char multikeyPathsEncodedAsBytes[kMaxKeyPatternPathLength];
5453void appendMultikeyPathsAsBytes (BSONObj keyPattern,
5554 const MultikeyPaths& multikeyPaths,
5655 BSONObjBuilder* bob) {
56+ char multikeyPathsEncodedAsBytes[kMaxKeyPatternPathLength ];
57+
5758 size_t i = 0 ;
5859 for (const auto keyElem : keyPattern) {
5960 StringData keyName = keyElem.fieldNameStringData ();
You can’t perform that action at this time.
0 commit comments