Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 822a686

Browse files
author
Nikita Glukhov
committed
Fix XXX comment about missing key "path"
1 parent 4e1aaef commit 822a686

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/utils/adt/jsonb_selfuncs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,8 @@ jsonPathStatsCompare(const void *pv1, const void *pv2)
221221
JsonValueInitStringWithLen(&pathkey, "path", 4);
222222
path2 = findJsonbValueFromContainer(&jsonb->root, JB_FOBJECT, &pathkey);
223223

224-
/* XXX Not sure about this? Does empty path mean global stats? */
225224
if (!path2 || path2->type != jbvString)
226-
return 1;
225+
return 1; /* XXX this is sign of invalid stats data */
227226

228227
/* compare the shared part first, then compare by length */
229228
res = strncmp(path1->val.string.val, path2->val.string.val,

0 commit comments

Comments
 (0)