Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
c07693f0
Commit
c07693f0
authored
10 years ago
by
Heikki Linnakangas
Browse files
Options
Downloads
Patches
Plain Diff
Remove remnants of a JENTRY_ISFIRST flag bit.
I removed the flag earlier, but missed a few references in jsonb.h.
parent
f669b614
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/utils/jsonb.h
+4
-6
4 additions, 6 deletions
src/include/utils/jsonb.h
with
4 additions
and
6 deletions
src/include/utils/jsonb.h
+
4
−
6
View file @
c07693f0
...
@@ -104,10 +104,9 @@ typedef struct JsonbValue JsonbValue;
...
@@ -104,10 +104,9 @@ typedef struct JsonbValue JsonbValue;
* To encode the length and offset of the variable-length portion of each
* To encode the length and offset of the variable-length portion of each
* node in a compact way, the JEntry stores only the end offset within the
* node in a compact way, the JEntry stores only the end offset within the
* variable-length portion of the container node. For the first JEntry in the
* variable-length portion of the container node. For the first JEntry in the
* container's JEntry array, that equals to the length of the node data. For
* container's JEntry array, that equals to the length of the node data. The
* convenience, the JENTRY_ISFIRST flag is set. The begin offset and length
* begin offset and length of the rest of the entries can be calculated using
* of the rest of the entries can be calculated using the end offset of the
* the end offset of the previous JEntry in the array.
* previous JEntry in the array.
*
*
* Overall, the Jsonb struct requires 4-bytes alignment. Within the struct,
* Overall, the Jsonb struct requires 4-bytes alignment. Within the struct,
* the variable-length portion of some node types is aligned to a 4-byte
* the variable-length portion of some node types is aligned to a 4-byte
...
@@ -124,7 +123,7 @@ typedef struct JsonbValue JsonbValue;
...
@@ -124,7 +123,7 @@ typedef struct JsonbValue JsonbValue;
* The least significant 28 bits store the end offset of the entry (see
* The least significant 28 bits store the end offset of the entry (see
* JBE_ENDPOS, JBE_OFF, JBE_LEN macros below). The next three bits
* JBE_ENDPOS, JBE_OFF, JBE_LEN macros below). The next three bits
* are used to store the type of the entry. The most significant bit
* are used to store the type of the entry. The most significant bit
* is
set on the first entry in an array of JEntrys
.
* is
unused, and should be set to zero
.
*/
*/
typedef
uint32
JEntry
;
typedef
uint32
JEntry
;
...
@@ -140,7 +139,6 @@ typedef uint32 JEntry;
...
@@ -140,7 +139,6 @@ typedef uint32 JEntry;
#define JENTRY_ISCONTAINER 0x50000000
/* array or object */
#define JENTRY_ISCONTAINER 0x50000000
/* array or object */
/* Note possible multiple evaluations */
/* Note possible multiple evaluations */
#define JBE_ISFIRST(je_) (((je_) & JENTRY_ISFIRST) != 0)
#define JBE_ISSTRING(je_) (((je_) & JENTRY_TYPEMASK) == JENTRY_ISSTRING)
#define JBE_ISSTRING(je_) (((je_) & JENTRY_TYPEMASK) == JENTRY_ISSTRING)
#define JBE_ISNUMERIC(je_) (((je_) & JENTRY_TYPEMASK) == JENTRY_ISNUMERIC)
#define JBE_ISNUMERIC(je_) (((je_) & JENTRY_TYPEMASK) == JENTRY_ISNUMERIC)
#define JBE_ISCONTAINER(je_) (((je_) & JENTRY_TYPEMASK) == JENTRY_ISCONTAINER)
#define JBE_ISCONTAINER(je_) (((je_) & JENTRY_TYPEMASK) == JENTRY_ISCONTAINER)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment