-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rdf test fix #2629
Rdf test fix #2629
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM, thanks for fixing these up.
@@ -20,7 +20,7 @@ using StringBuffer = common::StaticVector<std::pair<std::string, common::offset_ | |||
|
|||
class IndexBuilderGlobalQueues { | |||
public: | |||
explicit IndexBuilderGlobalQueues(std::unique_ptr<storage::PrimaryKeyIndexBuilder> pkIndex); | |||
explicit IndexBuilderGlobalQueues(storage::PrimaryKeyIndexBuilder* pkIndex); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious, why can't the global queues have ownership of the index anymore? We have to be careful that accesses to the index in any other fashion are properly synchronized, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because RDF copy requires CopyNode and CopyRel in a single physical plan. And CopyRel needs to access PrimaryKeyIndexBuilder
before it being flushed to disk. It's easier to access if the ownership is in CopyNode instead of GlobalQueue
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2629 +/- ##
==========================================
+ Coverage 91.11% 93.21% +2.09%
==========================================
Files 1058 1058
Lines 39235 39234 -1
==========================================
+ Hits 35750 36571 +821
+ Misses 3485 2663 -822 ☔ View full report in Codecov by Sentry. |
6a22348
to
838c1a4
Compare
initGlobalState
and stored in shared state. Responsible forIndexBuilderSharedState
initLocalState
and stored in operator. Responsible for