Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Storage
Commits
bc8ab077
Commit
bc8ab077
authored
Sep 14, 2021
by
neelesh thakur
Browse files
check cursor before hashing
parent
bbc21b7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
provider/storage-azure/src/main/java/org/opengroup/osdu/storage/provider/azure/repository/QueryRepository.java
View file @
bc8ab077
...
...
@@ -142,10 +142,11 @@ public class QueryRepository implements IQueryRepository {
continuation
=
((
CosmosStorePageRequest
)
pageable
).
getRequestContinuation
();
}
String
hashedCursor
=
Crc32c
.
hashToBase64EncodedString
(
continuation
);
this
.
cursorCache
.
put
(
hashedCursor
,
continuation
);
dqr
.
setCursor
(
hashedCursor
);
if
(!
Strings
.
isNullOrEmpty
(
continuation
))
{
String
hashedCursor
=
Crc32c
.
hashToBase64EncodedString
(
continuation
);
this
.
cursorCache
.
put
(
hashedCursor
,
continuation
);
dqr
.
setCursor
(
hashedCursor
);
}
docs
=
docPage
.
getContent
();
}
else
{
docs
=
record
.
findByMetadata_kindAndMetadata_status
(
kind
,
status
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment