Repository navigation
INTERNAL: Run search, insert, replace and delete on the lanes - #23
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
ing-eoking
force-pushed
the
lane-ops
branch
2 times, most recently
from
November 5, 2026 14:10
c81bd83 to
51b5810
Compare
ing-eoking
force-pushed
the
graph
branch
2 times, most recently
from
November 5, 2026 15:15
498c0a8 to
fe2b48b
Compare
ing-eoking
force-pushed
the
lane-ops
branch
2 times, most recently
from
November 5, 2026 15:45
5340c0d to
b6f3a4e
Compare
ing-eoking
force-pushed
the
lane-ops
branch
2 times, most recently
from
November 6, 2026 00:05
72aa82f to
df59c56
Compare
ing-eoking
force-pushed
the
graph
branch
2 times, most recently
from
November 6, 2026 01:19
73ba67d to
21b3531
Compare
ing-eoking
marked this pull request as draft
November 6, 2026 03:15
ing-eoking
force-pushed
the
lane-ops
branch
2 times, most recently
from
November 6, 2026 08:35
1d0afc9 to
bf83e9a
Compare
ing-eoking
force-pushed
the
graph
branch
2 times, most recently
from
November 10, 2026 01:43
6d5250d to
36167d7
Compare
ing-eoking
force-pushed
the
graph
branch
2 times, most recently
from
November 10, 2026 04:45
ce2135c to
d51f38c
Compare
ing-eoking
force-pushed
the
graph
branch
2 times, most recently
from
November 12, 2026 00:41
0ffd586 to
afe0810
Compare
zhy2on
reviewed
Nov 12, 2026
| let Some(op) = op_of(ev) else { | ||
| return; | ||
| }; | ||
| if let Op::Delete { index, map, .. } = &op |
Member
There was a problem hiding this comment.
graph가 없으면 Delete는 lane 큐를 거치지 않고 바로 해제되는 것 같습니다.
복제나 재생으로 이벤트가 연달아 오면 Insert가 해제된 element를 읽을 수 있어 보입니다.
엔진 lane
create ─→ [Create] (graph 아직 없음)
insert ─→ [Insert]
delete ─→ graph 없음 → 바로 해제
Create 실행
Insert 실행 → 해제된 element 읽음
Collaborator
Author
There was a problem hiding this comment.
아;; 브랜치 관리가 꼬여서 다시 올렸습니다.
zhy2on
reviewed
Nov 12, 2026
|
|
||
| /// Builds the index `spec` describes and registers it under its name. | ||
| pub fn create(spec: &Create<'_>) -> Result<(), Error> { | ||
| pub fn create_with(name: &str, map: usize, config: &[u8]) -> Result<(), Error> { |
Member
There was a problem hiding this comment.
nit: 함수명 create로 해도 되나요? _with를 사용한 이유가 있나요?
Collaborator
Author
There was a problem hiding this comment.
이름은 ai가 추천한 것으로 config를 따로 줘서 생성하는 거라 create_with를 추천한다고 합니다.
ing-eoking
force-pushed
the
lane-ops
branch
3 times, most recently
from
November 12, 2026 01:56
62e5b40 to
68326a5
Compare
namsic
approved these changes
Nov 12, 2026
zhy2on
approved these changes
Nov 12, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Related Issue
⌨️ What I did
lane이 받은 Op을 실제로
Graph에 실행합니다.이전 PR까지는 lane이 모든 Op에
NOT_SUPPORTED로 답했고, 이번 PR부터 search·insert·replace·delete·create·drop을 처리합니다.인덱스는 맵 link 이벤트로만 만들어집니다. 그래서 로컬 생성·복제·재생이 같은 경로로 처리됩니다.
설정 BSON 형식:
"type": "vector"표시로 벡터 인덱스 맵과 일반 맵을 구분합니다.표시가 없는 맵은 이벤트 콜백에서 바로 끝나므로, value를 복사하지도 lane에 넘기지도 않습니다.
vop create는 아직 맵을 저장하지 않으므로 이번 PR에서는NOT_SUPPORTED를 돌려줍니다.create_map으로 설정을 저장하도록 바뀌면 위 경로를 그대로 탑니다.